my $text = "foo\tbar"; $text =~/(.*?)\t/; print "$1\n"; my ($first) = split /\t/, $text; print $first;
In reply to (boo) it splits the string with a regex
by boo_radley
in thread string splitting
by cyrusb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |