in reply to Re: Re: How do I sort by certain parts of a filename?
in thread How do I sort by certain parts of a filename?

Even shorter (and faster) is: (split /_/, $b)[0]

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
Re: (tye)Re: How do I sort by certain parts of a filename?
by jeroenes (Priest) on May 10, 2001 at 11:09 UTC
    That shall learn me to pay attention when doing print some_expr....

    print (split)[0]; failed on me, but of course I should have tested print +(split)[0];. Aargg!

    Jeroen
    "We are not alone"(FZ)