Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
"be consistent"
 
PerlMonks  

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

by choroba (Abbot)
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


Comment on Re: How to use empty "<>" (Diamond Operator) inside While loop
Download Code
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 drinking their drinks and smoking their pipes about the Monastery: (19)
As of 2014-04-16 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (433 votes), past polls