Re: Find string ending with %

2005-08-17 Thread Binish A R
Timothy Johnson wrote: John W. Krahn wrote: [ message rearranged in chronological order. Please do not top-post ] No. If I'm responding to a message in this format, I'll use this format, but there's nothing illegitimate about top-posting. It is the email format that

RE: Find string ending with %

2005-08-16 Thread Timothy Johnson
John W. Krahn wrote: > [ message rearranged in chronological order. Please do not top-post ] No. If I'm responding to a message in this format, I'll use this format, but there's nothing illegitimate about top-posting. It is the email format that most of the world follows, using Outlook or Ou

Re: Find string ending with %

2005-08-16 Thread John W. Krahn
[ message rearranged in chronological order. Please do not top-post ] Timothy Johnson wrote: >> From: Keenan, Greg John (Greg)** CTR ** [mailto:[EMAIL PROTECTED] >> >> >> >> my @oput2 = /\b([0-9]+)%/; >> >> > > Just for starters, a regular expression should use the =~ operator, not > th

FW: Find string ending with %

2005-08-16 Thread Keenan, Greg John (Greg)** CTR **
-Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED] while() { my @oput2 = /(\d+)%/ or next; print "XXX @oput2 XXX\n"; } Thanks John, that's solved it. I'll read up on next. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: Find string ending with %

2005-08-16 Thread John W. Krahn
Keenan, Greg John (Greg)** CTR ** wrote: > Hi, Hello, > Need some help with a regex please. > > I need to search a file for every instance of a string that ends with %. > Think output from the df command. I need the 1, 2 or 3 digits before the % > passed into the array. > > Code: > #!/usr/bin/

RE: Find string ending with %

2005-08-16 Thread Timothy Johnson
Greg John (Greg)** CTR ** [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 16, 2005 5:10 PM To: 'beginners@perl.org' Subject: Find string ending with % my @oput2 = /\b([0-9]+)%/; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] &l

Find string ending with %

2005-08-16 Thread Keenan, Greg John (Greg)** CTR **
Hi, Need some help with a regex please. I need to search a file for every instance of a string that ends with %. Think output from the df command. I need the 1, 2 or 3 digits before the % passed into the array. Code: #!/usr/bin/perl use warnings; use strict; my $outfile2 = "XXX.dat"; open(DATA