Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: triyng to built a module

by kennethk (Abbot)
on Jul 22, 2013 at 18:57 UTC ( #1045700=note: print w/ replies, xml ) Need Help??


in reply to triyng to built a module

The consequent of using strict is that you must either 'declare' variables with my or our, or use a fully qualified package name (see strict vars). The above code can be repaired with

#!/usr/bin/perl use strict; use warnings; my $char = chr(0x394); my $code = ord($char); printf "char %s is code %d, %#04x\n", $char, $code, $code;

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.


Comment on Re: triyng to built a module
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045700]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2015-07-07 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (86 votes), past polls