I think what you are asking for the first question is this:
( $match_u_want ) = ( split( /:/, $_ ) )[ 2 ]; # note: gets the third element
Otherwise, yeah, like everybody else says, you got your third argument confused. You definitely should read more about split :-)
In reply to Re: Questions about split
by lestrrat
in thread Questions about split
by blax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |