Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How can I write this in a "simpler" way?

by LanX (Canon)
on Feb 11, 2014 at 23:33 UTC ( #1074542=note: print w/ replies, xml ) Need Help??


in reply to How can I write this in a "simpler" way?

You need to open a "file" and use a filehandle what you show applies to STDIN only.

Cheers Rolf

( addicted to the Perl Programming Language)


Comment on Re: How can I write this in a "simpler" way?
Re^2: How can I write this in a "simpler" way?
by Anonymous Monk on Feb 11, 2014 at 23:45 UTC
    Yeah, because technically we haven't reached the files yet, we are supposed to "feed" the input of the file with re-direction to the program, like:
    cat MYFILE | program.pl

    so, in that case, I guess what I wrote with defined is the correct way?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2015-07-04 01:47 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 (57 votes), past polls