On Thu, 2010-12-16 at 00:32 -0500, Assaf Gordon wrote: > Interestingly, before this was a perl script, it was a bash script. > in bash, the following just works: > > ===== > $ cat test.sh > #!/usr/bin/env bash > read LINE > sort > ==== > > the shell's built-in "read" slurps just one line from STDIN, and passing it > to sort works fine.
While the question is interesting and it is splendid idea to figure out how to do it in Perl, I am curious to know why one must go to all this trouble just to implement the wrapper script in Perl rather than in bash. In other words, what is the justification, in this case, for violating the principle of using the right tool for the job on hand. --- Omer -- May the holy trinity of $_, @_ and %_ be hallowed. My own blog is at http://www.zak.co.il/tddpirate/ My opinions, as expressed in this E-mail message, are mine alone. They do not represent the official policy of any organization with which I may be affiliated in any way. WARNING TO SPAMMERS: at http://www.zak.co.il/spamwarning.html _______________________________________________ Perl mailing list [email protected] http://mail.perl.org.il/mailman/listinfo/perl
