[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: [ID 20000126.003] strict doesn't work



Nagy Laszlo Zsolt pm1 9609 (lists.p5p):
>use strict;
>$a = 1;
>__END__
>
>This is the simplest script which seems to ignore
>"use strict". It works with the name "$b" too.

This is known; in fact, it's not a bug, and a rather popular non-bug at
that.

$a and $b are special variables because of their role in sort()
This is documented in the strict.pm that's in the development series; 
for the moment, perldoc -f sort will tell you about it.

-- 
Imbalance of power corrupts and monopoly of power corrupts absolutely.
		-- Genji


Follow-Ups from:
Nathan Torkington <gnat@frii.com>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]