On Jul 9, 12:44 am, [EMAIL PROTECTED] (Luke Devon) wrote:
> Hi
>
> How can we define NULL values in perl ? for instance if I wanted to assign a 
> NULL value for a variable called "$x= , how would it be in the code ?
>
> Thank you
> Luke
>
> Send instant messages to your online friendshttp://uk.messenger.yahoo.com

Three examples of code that results in $x being undef:

sub show { print defined $_[0]? "defined\n": "undef\n" }

my $x;        show $x;

$x = undef;   show $x;

undef $x;     show $x;

__END__
undef
undef
undef

--
Brad


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


Reply via email to