in reply to Re: Re: Removing delimiters
in thread Removing delimiters
Agreed, but the original post asked for either the first or the second; so I assumed that was all he wanted... In fact, if you don't want to use the list assignment you could do it also like this:
Many, many ways of doing the same... And how I love it ;-)my $first = ( split /::/, $readline, 2 )[ 0 ];
-- JaWi
"A chicken is an egg's way of producing more eggs."
In Section
Seekers of Perl Wisdom