Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How to use empty "<>" (Diamond Operator) inside While loop

by choroba (Chancellor)
on Jun 25, 2012 at 09:04 UTC ( #978155=note: print w/ replies, xml ) Need Help??


in reply to How to use empty "<>" (Diamond Operator) inside While loop

No, that is not how the diamond operator works. It checks for arguments, but only to treat them as file names. If there are no arguments, it reads its input from STDIN. You can try that with
echo This is the standard input | perl diamond.pl
See I/O Operators

Replies are listed 'Best First'.
Re^2: How to use empty "<>" (Diamond Operator) inside While loop
by zwon (Monsignor) on Jun 25, 2012 at 13:08 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2016-07-01 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (17 votes). Check out past polls.