lexical dump?

Discussion in 'Perl Misc' started by okey, Apr 3, 2009.

  1. okey

    okey Guest

    Outside of a debugger, can you list all the lexicals in scope? Vars
    declared with my don't show up in main::, the package I am using.
    (Lexical is the proper term?)
    Thanks.
    okey, Apr 3, 2009
    #1
    1. Advertising

  2. okey

    okey Guest

    On Apr 3, 10:39 am, Ben Morrow <> wrote:
    > Quoth okey <>:
    >
    > > Outside of a debugger, can you list all the lexicals in scope?  Vars
    > > declared with my don't show up in main::, the package I am using.
    > > (Lexical is the proper term?)

    >
    > Lexical is the proper term, and yes, you can do it with PadWalker. I
    > have to ask why you think you need to, though.
    >


    Probably not the best way
    of doing things, but a dump of everything right in your face is a
    quick way
    for us to check things out when the site craps out. Anyway, works for
    us.
    Thanks for the info
    okey, Apr 3, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric
    Replies:
    3
    Views:
    1,117
  2. Collin VanDyck
    Replies:
    0
    Views:
    307
    Collin VanDyck
    Nov 30, 2004
  3. Collin VanDyck
    Replies:
    0
    Views:
    414
    Collin VanDyck
    Nov 30, 2004
  4. halfdog
    Replies:
    12
    Views:
    12,406
  5. kj
    Replies:
    2
    Views:
    128
Loading...

Share This Page