This works because the regex match is in a list context. If it matches, you get back $1. If it fails to match, you get an empty list. And it disappears. {grin}my @delete_list = map /^delete_check_(.*)/, keys %session;
-- Randal L. Schwartz, Perl hacker
In reply to •Re: How to express myself
by merlyn
in thread help with s/// inside map
by blackjudas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |