go ahead... be a heretic | |
PerlMonks |
File Pipe Questionby Anonymous Monk |
on May 21, 2009 at 22:50 UTC ( [id://765567]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello!
I'd like to make a piece of code work a little more efficiently. I have a script which takes in a file as a parameter. However, the file needs to be a one liner because of the nature of the script. What I need to accomplish ideally wouldn't change the module. Instead what I wanted to know, is it possible to pipe the file into the perl script one line at a time? Just to be clear I don't mean while(defined($line = <infile>))...ect. thanks.
Back to
Seekers of Perl Wisdom
|
|