[Israel.pm] simple script question.

Yaron Golan ygolan at mercury.com
Sun Sep 26 09:29:06 PDT 2004


You see, all you had to do is ask ...

Shana Tova!
YG
 

-----Original Message-----
From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On Behalf
Of Prager, Mark
Sent: Sunday, September 26, 2004 6:46 PM
To: Perl in Israel
Subject: RE: [Israel.pm] simple script question.

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.
****************************************************************************
*******

_______________________________________________
Perl mailing list
Perl at perl.org.il
http://perl.org.il/mailman/listinfo/perl

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________



More information about the Perl mailing list