On 12-03-06 10:31 AM, lina wrote:
$ perl -Mstrict -wle '{my $char = chr(Ox394) ; print $char;}'
Bareword "Ox394" not allowed while "strict subs" in use at -e line 1.
Execution of -e aborted due to compilation errors.
I don't understand the above error message well,
Thanks ahead for any explainations,
Best Regards,
First time I tried it, I got the same error. But after goofing around a
bit, it started to work.
$ perl -Mstrict -wle '{my $char = chr(Ox394) ; print $char;}'
Bareword "Ox394" not allowed while "strict subs" in use at -e line 1.
Execution of -e aborted due to compilation errors.
$ perl -Mstrict -wle '{my $char = chr(Ox94) ; print $char;}'
Bareword "Ox94" not allowed while "strict subs" in use at -e line 1.
Execution of -e aborted due to compilation errors.
$ perl -Mstrict -wle '{my $char = chr(Ox4) ; print $char;}'
Bareword "Ox4" not allowed while "strict subs" in use at -e line 1.
Execution of -e aborted due to compilation errors.
$ perl -Mstrict -wle '{my $char = chr(394) ; print $char;}'
Wide character in print at -e line 1.
Ɗ
$ perl -Mstrict -wle '{my $char = chr(0394) ; print $char;}'
Illegal octal digit '9' at -e line 1, at end of line
Execution of -e aborted due to compilation errors.
$ perl -Mstrict -wle '{my $char = chr(034) ; print $char;}'
$ perl -Mstrict -wle '{my $char = chr(044) ; print $char;}'
$
$ perl -e'print 0x34'
52$ perl -e'print chr(0x34)'
4$ perl -e'$char=chr(0x34)'
$ perl -e'$char=chr(0x34);print $char'
4$ perl -e'my$char=chr(0x34);print $char'
4$ perl Mstrict -wle '{my $char = chr(0x30) ; print $char;}'
0
$ perl -Mstrict -wle '{my $char = chr(0x394) ; print $char;}'
Wide character in print at -e line 1.
Δ
$
--
Just my 0.00000002 million dollars worth,
Shawn
Programming is as much about organization and communication
as it is about coding.
It's Mutual Aid, not fierce competition, that's the dominate
force of evolution. Of course, anyone who has worked in
open source already knows this.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/