http://qs1969.pair.com?node_id=11128987

thirtySeven has asked for the wisdom of the Perl Monks concerning the following question:

I have settled into using this syntax for assigning variables based on regex matches.
$foo = $1 if $foo =~ /(hello)/;
I am constantly doing this so I want to know other ways to do the same thing.