my @bla = map{ tr/h//d; $_ } @{\@arr};
Your @{\...} does nothing. You surely meant
my @bla = map{ tr/h//d; $_ } @{[@arr]}; # ^ ^
- tye
In reply to Re^2: non aliased default var $_ (not @{\...})
by tye
in thread non aliased default var $_
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |