lame but fun; don't follow this idiom|t.
use Data::Dumper; my $stuff = 'ASDFZXCV S;JL KJQWER QWER ZXCVO ;QLKWERQ JKL;JAPS'; my %hash; my @keys = qw( asdf qwer jkl; ); @hash{@keys} = $stuff =~ / (asdf) .*? (qwer) .*? (jkl;) /gix; print Dumper \%hash;
In reply to Re^2: pattern matching and return values
by Your Mother
in thread pattern matching and return values
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |