Response

2002-09-07 Thread Boris Penchev
Hi Everyone, I think that this is a good idea ( use regular expresion ): $str = perl editor free blind accessible; $str =~ s/^(.*?\s.*?)\s(.*?)\s(.*?\s.*?)$/$1\n$2\n$3\n/i; print $str; To make this you have of course other-s way use split and others things. Best Regards, Boris Penchev

Re: Splitting a string

2002-09-07 Thread Janek Schleicher
Wiggins D'Anconia wrote at Sat, 07 Sep 2002 05:34:55 +0200: Octavian Rasnita wrote: Hi and thank you. It works! Could you explain me please in a few words what is this line doing exactly? I want to learn. print join \n, grep defined, ($string =~ /(.*?)|(\w+)/g); [snipped very good

Switching to Perl

2002-09-07 Thread Timothy Campbell
About one year before Perl was invented (1987, as I understand it), I created a text-processing language of my own, named Parse-O-Matic. Like Perl, it ended up being a veritable Swiss Army Knife. However, it only has a few thousand users and I think it's time to admit defeat and switch to Perl.

Re: Switching to Perl

2002-09-07 Thread Bob Showalter
- Original Message - From: Timothy Campbell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 06, 2002 4:08 PM Subject: Switching to Perl ...All I want is the essential perl.exe (for WinXP) so I can start learning. Can you tell me where I might find such a beast? Head

Regular expression

2002-09-07 Thread Octavian Rasnita
Hi all, I am trying to match a word boundry or an end of string. I would like something like: /$word[\bX]/ where X is the symbol used for end of string. I know that I can use $ but I don't think I can use it between brackets. I've seen that \b doesn't match the end or beginning of a string. I

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 Perl!

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] Sent:

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. Here's

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 (solution)

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 right way to do

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 substitution

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

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 following

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; my

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: tr td

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

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. /nitin - Do You

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 error

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

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

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 list of