Hi All:

If I have files like the following:

checking: env-20010712-0
checking: env-20010712-1
checking: env-20010712-10
checking: env-20010712-11
checking: env-20010712-12
checking: env-20010712-13
checking: env-20010712-14
checking: env-20010712-15
checking: env-20010712-16
checking: env-20010712-17
checking: env-20010712-18
checking: env-20010712-19
checking: env-20010712-2
checking: env-20010712-3
checking: env-20010712-4
checking: env-20010712-5
checking: env-20010712-6
checking: env-20010712-7
checking: env-20010712-8
checking: env-20010712-9

How can I get them in numerical order? I tried to sort them in my script 
with the following <snip>, but, it's not what I was hoping for.

<snip>

my @sorted_controlfiles = sort( { $a <=> $b } @controlfiles);
        foreach my $ctrlfile (  @sorted_controlfiles )
          {
              print "checking:", $crtfile,"\n";
        }

</snip>

Would anyone of you have a suggestion to get these files in order?

Much Thanks,

gS

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to