HOw to pass parameters to the perl script?

2002-09-07 Thread Almond
Please, trying to invoke perl script from the shell and have to pass parameter to it. What is the right way to do it? Thanks - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes

how to fix "uninitialized value in subsitution" warning

2002-09-07 Thread pelp
Hi - I'm unsure of how to patch the following warning message, "Use of uninitialized value in substitution (s///) at work.pl line 74" Here's my code: #!/usr/bin/perl use strict; user IO::File; my $FILE = new IO::File; my $change_on = "/FChangeBar Yes/"; my $change_off = "/FChangeBar No/";

Unable to save changes using IO::File

2002-09-07 Thread pelp
Hi - The problem is that I'm unable to save my changes after making subsitutions, and I don't understand why. Here's the code. -- #!/usr/vendor/bin/perl use strict; use IO::File my $FRAME_FILE = new IO::File; my $change_on = "FChangeBar Yes"; my $change_off = "FchangeBar No"; $FRAME_FILE -

RE: Book on Perl!

2002-09-07 Thread Daniel Schwedler Kofoed
Hi, Learning Perl is a good and easy one - here is a link to some of the perl books: http://www.norcom.ru/users/stone/ Cheers, Jakob > -Oprindelig meddelelse- > Fra: Nitin Yogishwar [mailto:[EMAIL PROTECTED]] > Sendt: 7. september 2002 06:55 > Til: [EMAIL PROTECTED] > Emne: Book on Per

Re: Book on Perl!

2002-09-07 Thread ANIDIL RAJENDRAN
The 3rd edition is definitely good. You can also try PERL BY EXAMPLE by ellie quigley. Perl Cookbook is definitely a must. good luck =rajendran Burlingame,CA - Original Message - From: "Ebaad Ahmed" <[EMAIL PROTECTED]> To: "Nitin Yogishwar" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Se

Re: Unable to save changes using IO::File

2002-09-07 Thread Bob Showalter
- Original Message - From: "pelp" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 9:12 PM Subject: Unable to save changes using IO::File > Hi - > > The problem is that I'm unable to save my changes after making > subsitutions, and I don't understand why. >

Re: perlcc boot_File__Glob error (solution)

2002-09-07 Thread Bob Showalter
I wonder why there's so much traffic on this list about perlcc? Why do so many feel the compulsion to "compile" their programs? - Original Message - From: "Tony" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 9:04 PM Subject: perlcc boot_File__Glob error (sol

Re: HOw to pass parameters to the perl script?

2002-09-07 Thread Bob Showalter
- Original Message - From: "Almond" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 3:50 PM Subject: HOw to pass parameters to the perl script? > > Please, > > trying to invoke perl script from the shell and have to pass parameter > to it. > > What is the rig

Re: how to fix "uninitialized value in subsitution" warning

2002-09-07 Thread Bob Showalter
- Original Message - From: "pelp" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 7:26 PM Subject: how to fix "uninitialized value in subsitution" warning > Hi - > > I'm unsure of how to patch the following warning message, > > "Use of uninitialized value in

RE: HOw to pass parameters to the perl script?

2002-09-07 Thread Beau E. Cox
perl script_name arg0 arg1 arg2... the args are available to you in @ARGV. Aloha => Beau. -Original Message- From: Almond [mailto:[EMAIL PROTECTED]] Sent: Friday, September 06, 2002 9:50 AM To: [EMAIL PROTECTED] Subject: HOw to pass parameters to the perl script? Please, trying to i

Re: Translating fortran subroutine to perl

2002-09-07 Thread John W. Krahn
John Cichy wrote: > > Hello all, Hello, > I have a binary I*2 format data file that I would like to extract data from. > The file comes with a discription file that contains a fortran sub to extract > the data. For the life of me I can't figure out how to accomplish the extraction. > The follow

Translating fortran subroutine to perl

2002-09-07 Thread John Cichy
Hello all, I have a binary I*2 format data file that I would like to extract data from. The file comes with a discription file that contains a fortran sub to extract the data. For the life of me I can't figure out how to accomplish the extraction. The following is from the description file nad

Re: Unable to save changes using IO::File

2002-09-07 Thread John W. Krahn
Pelp wrote: > > Hi - Hello, > The problem is that I'm unable to save my changes after making > subsitutions, and I don't understand why. > > Here's the code. > > -- > > #!/usr/vendor/bin/perl > use strict; > use IO::File > > my $FRAME_FILE = new IO::File; > my $change_on = "FChangeBar Yes"

Processing Tagged Files (Real Newbie)

2002-09-07 Thread Alexandre Enkerli
Hello all, This one is probably very easy for most of you and it would help me a great deal if someone could tell me how to do it. I know there's a bunch of tutorials, perldocs and manuals out there, but I'm getting confused. I receive files with the following line format:  ENKA10577207  p

system function question

2002-09-07 Thread Brian Volk
Hi All, I'm trying to write a program that will calculate the number of days between two dates. I thought it would be easy enough to write... but I thought wrong. One of the dates is fixed: $start_date = system "date --d 20020607"; The other date is the current date: $todays_date = system "d

RE: Book on Perl!

2002-09-07 Thread HiroPro1971
The O'Reilly books are awesome, but I also enjoyed "Perl: How to Program" by Deitel, Deitel, Nieto, and McPhie. #jlk Nitin Yogishwar <[EMAIL PROTECTED]> wrote: > >Hi, > >Can some one tell me which is best book on Perl language for beginners. > > > > > >- >Do Y

Re: perlcc boot_File__Glob error (solution)

2002-09-07 Thread Tony
Well, in my case I work for a security company, and I need to close the source to make sure that our software is "secure". - Original Message - From: "Bob Showalter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 07, 2002 8:07 AM Subject: Re: perlcc boot_File__Glob

RE: Book on Perl!

2002-09-07 Thread Kowalski Pete-PKOWALS1
My personal choice is "PERL BLACK BOOK" http://www.amazon.com/exec/obidos/ASIN/1576104656/hotscrcomyourgui/002-58285 00-2101637 .:. -Original Message- .:. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] .:. Sent: Saturday, September 07, 2002 7:32 PM .:. To: [EMAIL PROTECTED];

Re: system function question

2002-09-07 Thread Tim Musson
Hey Brian, My MUA believes you used Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 to write the following on Saturday, September 7, 2002 at 10:00:23 PM. BV> Hi All, BV> I'm trying to write a program that will calculate the number of days BV> between

Re: HOw to pass parameters to the perl script?

2002-09-07 Thread Simon K. Chan
Hi Almond, Along with what Bob suggested, you can also try using the module GetOpt::Long, too. It should be included in the standard distribution. HTH, Simon --- Almond <[EMAIL PROTECTED]> wrote: > > Please, > > trying to invoke perl script from the shell and have to pass parameter to it

Problems with perl and cron jobs

2002-09-07 Thread David Gerler
Hi all, I have a script that runs an SQL query and sends an email using sendmail. It works fine if called using a browser. The email is sent with the correct content in the message. If I run it using cron, I get the message but the content is not sent. Meaning the body of the messa

Re: system function question

2002-09-07 Thread Brian Volk
Thank you. I didn't realize you could do that... How can you find a list of all the questions in perldoc? Thanks again, Brian Tim Musson wrote: >Hey Brian, > >My MUA believes you used Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) >Gecko/20011126 Netscape6/6.2.1 >to write the f

Re: system function question

2002-09-07 Thread Tanton Gibbs
perldoc perlfaq - Original Message - From: "Brian Volk" <[EMAIL PROTECTED]> To: "Tim Musson" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, September 08, 2002 2:04 AM Subject: Re: system function question > Thank you. I didn't realize you could do that... How can you find a