Weide wrote:
Can anyone tell me why the map will not map out the unitialized
variable in this code with 'str'?

It does.

<snip>

    map { defined $_ ? $_ : 'str' } @_ ;
    print @_;

You probably meant to write

    print map { defined $_ ? $_ : 'str' } @_ ;

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to