I would like to be able to access the part of split that goes into $keep directly and avoid the $junk variable all together. Any thoughts? Additional info: I am running ActivePerl 5.8.1 Build 807 on Win2K.my $string="part of string to keep|part of string to toss"; my ($keep,$junk)=split /\|/, $string; print "$keep\n";
In reply to using split without $junk by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |