my $line=' this or that '; my @patterns= ( $line =~ /\s*(\S*)\s*(\S*)\s*(\S*)/ ); print join('-',@patterns); # prints this-or-that
In reply to Re: Array as LHS on string match
by DACONTI
in thread Array as LHS on string match
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |