Re: white space between roam and act

2005-10-19 Thread John W. Krahn
Beau E. Cox wrote: > > Whitespace is \s ( by default ( |\t|\n) ) Actually the \s character class is the same as [ \t\n\r\f]. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: white space between roam and act

2005-10-19 Thread K.Moeng
Hello again folks. It now works- I had to put the characters inside " " during the query. i have used if ($msg =~ /roam\s*act/i) therefore i will run c:\perl\bin->perl activate.pl "roam(space) act" Thanks all for your help especially Beau E. Cox Elie De Brauwer - Original Message

Re: white space between roam and act

2005-10-19 Thread JupiterHost.Net
K.Moeng wrote: Hello again, Hello, Please turn of read receipts when posting to a list, thanks. I have rephrased my question from yesterday, And are still not using strict or warnings, shame shame... I want to be able to ignore the white space in between ROAM and ACT By "the white sp

Re: white space between roam and act

2005-10-19 Thread Jeff 'japhy' Pinyan
On Oct 19, Suvajit Sengupta said: To ignore the white space in between ROAM and ACT use /x modifier of Perl RE to extend your pattern's legibility by permitting whitespace and comments. Hope that will serve your purpose. Instead of if ($msg =~ /roam act/i) Use if ($msg =~ /roam act/ix) Y

Delete a char from file

2005-10-19 Thread Sridhar Reddy
Is there any way to delete a character from a file from command line Let me explain.. I have a symbol % in file in many places. I want to remove it from the file. Here I don't like to write a script just looking for a command to delete the character from the file. Thanks, Sr

Re: Delete a char from file

2005-10-19 Thread Varghese Mathew
> I have a symbol % in file in many places. I want to remove > it from the file. can you try this? perl -pi -e 's/%//g' filename Varghese ps-ax.org Sridhar Reddy wrote: Is there any way to delete a character from a file from command line Let me explain.. I have a symbol %

Re: white space between roam and act

2005-10-19 Thread K.Moeng
The problem got solved by if ($msg =~ /roam\s*act/i) this will allow you to get the whole word without space or take it with space. though when you query you have to put the words under " ". - Original Message - From: "Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> To: "Suvajit Sengupta" <[EMA

Re: white space between roam and act

2005-10-19 Thread Jeff 'japhy' Pinyan
On Oct 19, K.Moeng said: The problem got solved by if ($msg =~ /roam\s*act/i) this will allow you to get the whole word without space or take it with space. though when you query you have to put the words under " ". Well, yes. Running your program as perl myprog.pl roam act is the same a

Re: How to build an executable on Windows

2005-10-19 Thread kathyjjja
Thank you all for your help with this. I have a question about proper protocol for this list. When I reply to the list, should I also copy individuals who answered my question? I thought I needed to make my program executable because it will be a scheduled task on a Windows computer. The wiz

Need Some Guidance

2005-10-19 Thread Gladstone Daniel - dglads
Good Evening I am trying to learn Perl, I was told to go out and get the Camel=3D20 Book - "Programming Perl" I got the book today and I was wondering if this is the best way to=3D20 Learn Pearl. Can anyone give me suggestions on how best to proceed through the book I got - Third Edition Thanks

RE: Need Some Guidance

2005-10-19 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Gladstone Daniel - dglads wrote: > Good Evening > > I am trying to learn Perl, I was told to go out and get the Camel=3D20 > Book - "Programming Perl" > > I got the book today and I was wondering if this is the best way > to=3D20 Learn Pearl. Depending on your background, the better star

Re: Need Some Guidance

2005-10-19 Thread Chris Devers
On Wed, 19 Oct 2005, Gladstone Daniel - dglads wrote: I am trying to learn Perl, I was told to go out and get the Camel=3D20 Book - "Programming Perl" I got the book today and I was wondering if this is the best way to=3D20 Learn Pearl. Can anyone give me suggestions on how best to proceed thr

RE: Need Some Guidance

2005-10-19 Thread Gomez, Juan
Hi I am learning too and for me Learning Perl has help a lot My opinion is to start with Learning Perl and work you way to Programming Perl Armando Gomez Guajardo Process Engineer Work Ph 956 547 6438 Beeper956 768 4070 -Original Message- From: Gladstone Daniel - dglads [mail

Active perl - Which format to download

2005-10-19 Thread andrewmchorney
Hello I am about to download the active perl software and I noticed that there are 2 formats. There is the AS package and the MSI package. What are the differences and which one is better? Also how does one install this program as I downloaded the AS package and did not see a setup program in t

RE: Active perl - Which format to download

2005-10-19 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: > Hello > > I am about to download the active perl software and I noticed that > there are 2 formats. There is the AS package and the MSI package. > What are the differences and which one is better? Also how does one > install this program as I downloaded the AS package an

Re: How to build an executable on Windows

2005-10-19 Thread Jeff 'japhy' Pinyan
On Oct 19, kathyjjja said: $ftp = Net::FTP->new("aaa.bbb.org", Debug =>0) or die "Cannot connect to aaa.bbb.org: $@"; $ftp->ascii $ftp->login("login","passwd") or die "Cannot login", $ftp->message; You missed the semicolon after '$ftp->ascii'. -- Jeff "japhy" Pinyan% How can we ever

RE: Need Some Guidance

2005-10-19 Thread Gladstone Daniel - dglads
I noticed that there is various version of Learning Perl + Perl Cookbook The most version (Version 4) costs the most. Does it matter the version if I want to learn or do I need to get the most recent version? What is the groups thoughts? Daniel Gladstone ([EMAIL PROTECTED])

which perldoc ?

2005-10-19 Thread Brian Volk
Hi All~ Is there a perldoc that will list the available arguments and there meanings for perl-one-liners? I saw this in an earlier email; Subject: Delete a char from a file Perl -pi -e '/s/%/ /' filename I'm guessing the -i is for in-place edit and the -e is che

Re: Delete a char from file

2005-10-19 Thread John W. Krahn
Sridhar Reddy wrote: > Is there any way to delete a character from a file from command line Yes. > Let me explain.. Please do. > I have a symbol % in file in many places. I want to remove > it from the file. Here I don't like to write a script just looking for a > command to delet

Re: Need Some Guidance

2005-10-19 Thread John W. Krahn
Gladstone Daniel - dglads wrote: > Good Evening Hello, > I am trying to learn Perl, I was told to go out and get the Camel=3D20 > Book - "Programming Perl" Who told you that? Go to the web site http://learn.perl.org/ John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL

Re: which perldoc ?

2005-10-19 Thread John W. Krahn
Brian Volk wrote: > Hi All~ Hello, > Is there a perldoc that will list the available arguments and there meanings > for perl-one-liners? perldoc perlrun > I saw this in an earlier email; Subject: Delete a char from a file > >Perl -pi -e '/s/%/ /' filename What you probab

Re: which perldoc ?

2005-10-19 Thread Jeff 'japhy' Pinyan
On Oct 19, Brian Volk said: Is there a perldoc that will list the available arguments and there meanings for perl-one-liners? Yes. To try and figure out what perldoc to look at for a given topic, do: perldoc perldoc which will show the names of the documentation sections and a brief summ

Re: which perldoc ?

2005-10-19 Thread Randy W. Sims
Jeff 'japhy' Pinyan wrote: On Oct 19, Brian Volk said: Is there a perldoc that will list the available arguments and there meanings for perl-one-liners? Yes. To try and figure out what perldoc to look at for a given topic, do: perldoc perldoc You mean `perldoc perl` ? ;) -- To unsub

Re: which perldoc ?

2005-10-19 Thread Jeff 'japhy' Pinyan
On Oct 19, Randy W. Sims said: Jeff 'japhy' Pinyan wrote: On Oct 19, Brian Volk said: Is there a perldoc that will list the available arguments and there meanings for perl-one-liners? Yes. To try and figure out what perldoc to look at for a given topic, do: perldoc perldoc You mean `

major newbie

2005-10-19 Thread Brian Franco
OK ...im working my way through "learn perl in a weekend" bookit's good but gets into OOP perl which im not interested in. Maybe I should skip that part. Im interested in learning perl to be ad better ADMIN on my RHEL server. I was just courious as to anybody else out there that uses perl for

Re: major newbie

2005-10-19 Thread Chris Devers
On Wed, 19 Oct 2005, Brian Franco wrote: OK ...im working my way through "learn perl in a weekend" Okay, anything with a title like that is very safe to ignore. The book you're looking for is _Perl for System Administration_: http://www.oreilly.com/catalog/perlsysadm/ http://www.amazon.com/e

Re: major newbie

2005-10-19 Thread Brian Franco
The book you're looking for is _Perl for System Administration_: http://www.oreilly.com/catalog/perlsysadm/ http://www.amazon.com/exec/obidos/tg/detail/-/1565926099 As for more concrete advice, that depends on the specific task. Chris Devers Chris, Thanks for the advice. I just ordered Perl

RE: Need Some Guidance

2005-10-19 Thread Chris Devers
On Wed, 19 Oct 2005, Gladstone Daniel - dglads wrote: I noticed that there is various version of Learning Perl + Perl Cookbook The most version (Version 4) costs the most. Does it matter the version if I want to learn or do I need to get the most recent version? What is the groups thoughts