Re: Help with -e switch

2002-12-24 Thread RMD
OTECTED]> Cc: "Perl Beginners" <[EMAIL PROTECTED]> Sent: Tuesday, December 24, 2002 12:17 PM Subject: Re: Help with -e switch > On Tue, Dec 24, 2002 at 08:38:35AM +1100, Kieren Diment wrote: > > > I'd like to know if it's possible to combine the -i and -e switch

Re: Help with -e switch

2002-12-24 Thread Paul Johnson
On Tue, Dec 24, 2002 at 08:38:35AM +1100, Kieren Diment wrote: > I'd like to know if it's possible to combine the -i and -e switches. > I have the following script, and I'd like not to have to go to the > bother of firing up an editor, chmod +x ing it and co: > > #!/usr/bin/perl -w > open FILE, $

RE: Help with -e switch

2002-12-24 Thread wiggins
Should work according to the examples in perldoc perlrun Search for the -i. http://danconia.org On Tue, 24 Dec 2002 08:38:35 +1100, Kieren Diment <[EMAIL PROTECTED]> wrote: > I'd like to know if it's possible to combine the -i and -e switches

Help with -e switch

2002-12-24 Thread Kieren Diment
I'd like to know if it's possible to combine the -i and -e switches. I have the following script, and I'd like not to have to go to the bother of firing up an editor, chmod +x ing it and co: #!/usr/bin/perl -w open FILE, $ARGV[0]; while () { print if (/(^org_name)|(^email)|(^$)/);