Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Perfect now!

by Errto (Vicar)
on Jan 22, 2005 at 21:33 UTC ( #424280=note: print w/replies, xml ) Need Help??


in reply to Perfect now!
in thread Spreadsheet::ParseExcel vs alternative Cell Handler

This is one of Perl's stranger messages, but it is a common one. I assume one of the following is true
  • You are requireing this code from within the body of a subroutine in your main code
  • You are running it with mod_perl under Apache::Registry
The result is that you are declaring a nested subroutine within another one, and the inner sub accesses a lexical variable declared in the outer one. This is a bad thing, because Perl will not be able to figure out which "instance" of that lexical variable the inner sub should be working with when you call it. Solutions to this problem are explained here.

Replies are listed 'Best First'.
Re^2: Perfect now!
by Anonymous Monk on Jan 27, 2005 at 18:55 UTC
    Hey, Errto.

    That´s the first one, in fact! Thanks for the help!

    André

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2021-09-16 12:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?