/$foo/ isn't equivalent to $_ eq $foo. Personally I use $_ eq $foo quite often, as I see no benefit in using /^\Q$foo\E\z/.
You might want to look at first from List::Util.
ihb
See perltoc if you don't know which perldoc to read!
In reply to Re^2: Adding Unique Elements to Array
by ihb
in thread Adding Unique Elements to Array
by thekestrel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |