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
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
[ 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
-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
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/
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
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