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. Advertisements

  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. Advertisements

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,395
  2. Collin VanDyck
    Replies:
    0
    Views:
    398
    Collin VanDyck
    Nov 30, 2004
  3. Collin VanDyck
    Replies:
    0
    Views:
    504
    Collin VanDyck
    Nov 30, 2004
  4. halfdog
    Replies:
    12
    Views:
    13,194
  5. Ron

    Lexical convention

    Ron, Aug 30, 2003, in forum: C++
    Replies:
    0
    Views:
    466
  6. cricket

    Python lexical scanner

    cricket, Sep 25, 2003, in forum: Python
    Replies:
    0
    Views:
    548
    cricket
    Sep 25, 2003
  7. Matt Knepley

    Lexical Scope

    Matt Knepley, Oct 30, 2003, in forum: Python
    Replies:
    3
    Views:
    556
    Paul Clinch
    Oct 30, 2003
  8. kj
    Replies:
    2
    Views:
    219
Loading...