Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Learning Perl as a First (programming) language

by talexb (Canon)
on Aug 02, 2002 at 17:46 UTC ( #187164=note: print w/ replies, xml ) Need Help??


in reply to Re: Learning Perl as a First (programming) language
in thread Learning Perl as a First (programming) language

    Well, you are forgetting a my $i if you want to have equivalent code.
No, :) I purposefully left it out, in order to demonstrate the point that Perl will autovivify a variable for you, while C will just throw an error. I also purposefully did not use strict or include the she-bang line.

--t. alex

"Mud, mud, glorious mud. Nothing quite like it for cooling the blood!"
--Michael Flanders and Donald Swann


Comment on Re: Re: Learning Perl as a First (programming) language
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2014-07-25 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (170 votes), past polls