my $serverID = 'serverFoo/bar/baz'; my( $cnID ) = split '/', $serverID, 2; print "$serverID $cnID";
Originally posted as a Categorized Answer.
In reply to Re: Splitting a string... Duh?
by PodMaster
in thread Splitting a string... Duh?
by KenShackelford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |