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

Re: Stream and Atom flexibility

by hipowls (Curate)
on Mar 15, 2008 at 01:29 UTC ( #674327=note: print w/ replies, xml ) Need Help??


in reply to Stream and Atom flexibility

You could do something like

if (@ARGV) { process($_) for @ARGV; } else { while (<>) { process($_); } }
where sub process does the real work.


Comment on Re: Stream and Atom flexibility
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2015-08-01 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls