in reply to Re: getting the tail of a string
in thread getting the tail of a string

As he is asking for a way to do this on the command line, I'd be inclined to offer something simple:

my $m = $x =~ m!([^/]*)$!;

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re^3: getting the tail of a string
by adrianh (Chancellor) on Jun 10, 2003 at 20:43 UTC

    And I'd be inclined to offer something that worked on my Mac OS 9 box (it's still there buzzing away in the corner :-)

    To-may-to. Toe-mah-to.