Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 studying the Monastery: (17)
As of 2014-09-18 16:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (120 votes), past polls