"...This allows things like..."
Yes and no:
#!/usr/bin/env perl use strict; use warnings; use feature qw(say);; my $foo = 'Bar': my $foo = $foo x 2; say $foo; __END__
Perl allows it generously but then it complains about "my" variable $foo masks earlier declaration in same scope at ./foo.pl line 8..
Iznogoud. But in a block it works flawless - no surprise:
KARL : { my $foo = $foo x 2; say $foo; }
But why the effort? You could say $foo x= 2; which results in BarBar. If this is what you wanted. What i assume.
Best regards, Karl
«The Crux of the Biscuit is the Apostrophe»
perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help
In reply to Re^3: open(), go away with bad way, or fail with the right way?
by karlgoethebier
in thread open(), go away with bad way, or fail with the right way?
by hda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |