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

Re: Question of scope and syntax

by sauoq (Abbot)
on May 02, 2012 at 18:05 UTC ( [id://968499]=note: print w/replies, xml ) Need Help??


in reply to Question of scope and syntax

push(my @contentsOfDataBase, $_);

That's where you are masking an earlier declaration. Just remove the my.

while ($boxEnd >= my $boxBegining, $boxBegining++)

And that's where you are using >= in void context. That should probably look something like ...

my $boxBegining; while ($boxEnd >= $boxBegining) { $boxBegining++; # ... and the rest of your loop ... }
-sauoq
"My two cents aren't worth a dime.";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-24 07:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found