in reply to Sub can't get $_ value?

Why do you think it would be in $_? I'm pretty sure you want the first argument to the subroutine, which is in $_[0] instead.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: •Re: Sub can't get $_ value?
by DaWolf (Curate) on Jan 11, 2004 at 23:26 UTC
    Thanks, I was very dumb...

    Best regards,

    my ($author_nickname, $author_email) = ("DaWolf","erabbott\@terra.com.br") if ($author_name eq "Er Galvão Abbott");