Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: @ARGV in while loop

by Kenosis (Priest)
on Feb 14, 2014 at 17:53 UTC ( [id://1074985]=note: print w/replies, xml ) Need Help??


in reply to @ARGV in while loop

However, if you want to print what <> is currently consuming, you can:

use strict; use warnings; print $ARGV[0], "\n"; #printed while (<>) { print "$ARGV\n"; #can be printed }

Replies are listed 'Best First'.
Re^2: @ARGV in while loop
by lightoverhead (Pilgrim) on Feb 14, 2014 at 18:02 UTC

    Thank you. You are right.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1074985]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-20 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found