[Israel.pm] simple script question.

Prager, Mark Mprager at ndsisrael.com
Sun Sep 26 08:45:35 PDT 2004


Thanks to all - the solution has now been implemented.

|-----Original Message-----
|From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il]On
|Behalf Of Offer Kaye
|Sent: Sunday, September 26, 2004 4:50 PM
|To: Perl in Israel
|Subject: Re: [Israel.pm] simple script question.
|
|
|On Sun, 26 Sep 2004 14:10:34 +0000, Mikhael Goikhman 
|<migo at homemail.com> wrote:
|> 
|> This is not quite correct. "<>" is "<ARGV>", not "<STDIN>".
|> There are several serious differences.
|> 
|
|True, although I suspect that for Mark these don't matter too much, as
|he originally wrote "The idea is if I have a file as follows:". File,
|not files. Plus, sometimes it is better to fudge a little, for the
|sake of clarity.
|
|But you're right that I should have clarified that there is a
|different usage of the script available, when using <STDIN> vs. <> .
|So Mark, if you're using <STDIN>, I assume you use your script as
|follows (correct me if I'm wrong):
|   cat input_file | script.pl
|If you switch to using <>, then you could still use it the same way,
|but a better way (IMHO) is now possible:
|  script.pl input_file
|
|-- 
|Offer Kaye
|_______________________________________________
|Perl mailing list
|Perl at perl.org.il
|http://perl.org.il/mailman/listinfo/perl
|
***********************************************************************************
Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster at nds.com and destroy the original message.
***********************************************************************************




More information about the Perl mailing list