Never use $1 except in the context of knowing that you had a successful match. If the match fails, you'll get a stale $1, and that could ruin your day. In this case, if the match should never fail, add an "or die" to the match line./^"\s*(.*)\s*"\s*,\s*"\s*(.*@.*)\s*"\s*$/; $nomes[$. - 1]=$1; $mail[$. - 1]=$2; $nomes[$. - 1]=~s/\\(.)/$1/g;
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to Re: secret santa
by merlyn
in thread secret santa
by smokemachine
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |