On May 24, Jeff Pinyan said:

>Now the GRT looks like:
>
>  @sorted =
>
>    # get rid of leading sorting string
>    map { s/^\S+\s+// }

That should be

     map { s/^\S+\s+//; $_ }

or even

     grep { s/^\S+\s+// }

You can use grep() here since all lines will match that regex.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
Are you a Monk?  http://www.perlmonks.com/     http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc.     http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter.         Brother #734
** I need a publisher for my book "Learning Perl's Regular Expressions" **

Reply via email to