Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File Pipe Question
by graff (Chancellor) on May 22, 2009 at 01:06 UTC | |
|
Re: File Pipe Question
by akho (Hermit) on May 21, 2009 at 23:56 UTC |