in reply to help with s/// inside map
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help with s/// inside map
by blackjudas (Pilgrim) on May 15, 2002 at 00:36 UTC |