Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

RE: Re: redeclaring variables with 'my'

by ChOas (Curate)
on Nov 10, 2000 at 17:28 UTC ( [id://40933]=note: print w/replies, xml ) Need Help??


in reply to Re: redeclaring variables with 'my'
in thread redeclaring variables with 'my'

Tell him it is NOT redeclaring, it is only allocated
once, at the 2..nth time in the while the 1st declared
variable is used...

It is just a local, like this:
... { my $var=<FILE>; while ($Var) { ... ... $var=<FILE>; }; } # $Var out of scope ...

Try that on him ;))

GrtZ!,

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-03-28 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found