> Expected error message: "Global symbol "$b" requires explicit package
> name".
> However, I get result: "test".
> I've checked the special variables and it looks like $b is one of
> these.
>
> use warnings;
> use strict;
> zzz ($b);
> print "$b\n";
> sub zzz{
>     $_[0] = "test";
> }
>
> Does it mean - that in general - we should not use one character
> variables
> in Perl?

$a and $b have special meanings in Perl.

Aside from that, try defining $b with my:

my ($b) = "";

before using it, and the error *should* dissapear.

Steve

> thanks
> adam
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>



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


Reply via email to