Michele Dondi wrote:
Abigails code:
if you just remove a pair of
newlines and think that $; and %; are variable names like any other, they are not.
then it's not that obscure any more, althouth not less brilliant and
fascinating!
$; = $";
$;{Just=>another=>Perl=>Hacker=>} = $/;
print %; ;
Could anybody explain, why perl will execute the code above under 'use strict'
whereas it will not do so, when %; is replaced by %foo like so:
use strict;
use warnings;
$; # A lone dollar?
=$"; # Pod?
$foo # The return of the lone dollar?
{Just=>another=>Perl=>Hacker=>} # Bare block?
=$/; # More pod?
print %foo ; # No right operand for %?
I can't find a special variable %; in the docs.
Christoph