On Tue, Mar 6, 2012 at 9:31 AM, lina <lina.lastn...@gmail.com> 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,
>
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
>
>

If you are simply trying to assign "chr(0x394)" to varible $char and
then print $char then the below will work.

perl -Mstrict -wle '{my $char = "chr(0x394)" ; print $char;}'


HTH,

Chris

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to