Matching is a one-to-many operation. More succintly:use Magic; tilt() if ($str =~ m/$Magic::selfish/ && ${str}abc !~ m/$Magic::selfish/); tilt() if ($Magic::selfish =~ m/$str/ && ${Magic::selfish}abc !~ m/$str/);
You're tilting at a windmill.die "42" if ${Magic::selfish}z !~ m/$Magic::selfish/;
After Compline,
Zaxo
In reply to Re: japhy has met his match
by Zaxo
in thread japhy has met his match
by japhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |