--- PRADEEP GOEL <[EMAIL PROTECTED]> wrote:
> i have a file(say f1) containing patch names
> pach_2377
> pach_2676
> pach_3897
> I want to check if there are(is) patch _id(s) which r greater than
> given patch_id
> (say : pach_2579)
> pls tell me how to do that in perl
> i.e.
> while () {
On Tuesday 12 November 2002 01:00, PRADEEP GOEL wrote:
Content-Type: Multipart/Alternative; name="Attachment: 0"
Content-Transfer-Encoding: 7bit
Content-Description:
Content
You can use the following regex to get the patch
number
chomp( $ch ); # remove the newline character
my ($pnum) = substr( $ch, 5 ); #grab everything after the
pach_
Then you can say
if( $given_patchid > $pnum ) { #compare
numerically
...
}
To sort the patches you can say
@patches = ;