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.
In reply to File Pipe Question by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |