Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: triyng to built a module

by kennethk (Monsignor)
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 surveying the Monastery: (7)
As of 2014-12-26 08:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (168 votes), past polls