Ah.

Too bad. FWIW if I wrap my entire script in "sub main { ... } &main();"
it seems to work, which does help.

Thanks-
-Brian.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 21, 2004 2:39 AM
To: Desany, Brian; [EMAIL PROTECTED]
Subject: RE: y command

Brian,

I think you might have to be in a subroutine for it to do it's magic.

>From the PadWalker docs:

  inspect (and even change!) lexical variables in any subroutine which
called you
                                                      ..........

Ciao
Richard Foley

http://www.oreilly.com/catalog/perldebugpr/ 

>-----Original Message-----
>From: Desany, Brian [mailto:[EMAIL PROTECTED]
>Sent: Montag, 20. September 2004 22:04
>To: [EMAIL PROTECTED]
>Subject: y command
>
>
>Hi guys,
>I'm using perl 5.8.5, with perl5db.pl version 1.27, and PadWalker
>version 0.1.
>
>My understanding is that with the PadWalker module installed, the 'y'
>command in the debugger is supposed to show you the lexical 
>variables in
>some scope (say, the current scope).
>
>It doesn't seem like it's quite working for me:
>
>[EMAIL PROTECTED] scripts]$ perl -d ./template_metrics.pl 
>
>Loading DB routines from perl5db.pl version 1.27
>Editor support available.
>
>Enter h or `h h' for help, or `man perldebug' for more help.
>
>main::(./template_metrics.pl:22):       my $TEMPLATE_SUMMARY_HTML =
>"template_summary.html";
>  DB<1> n
>main::(./template_metrics.pl:23):       my $TEMPLATE_METRIC_HTML =
>"template_metrics.html";
>  DB<1> n
>main::(./template_metrics.pl:24):       my $METRICS_SPREADSHEET =
>"metric_summary.xls";
>  DB<1> n
>main::(./template_metrics.pl:25):       my $BACKGROUND_FILE =
>"analysisMetrics.txt";
>  DB<1> y
>$METRICS_SPREADSHEET = undef
>$TEMPLATE_METRIC_HTML = undef
>$TEMPLATE_SUMMARY_HTML = 3
>
>
>Do you have any suggestions as to what might be wrong or better yet how
>to fix it?
>
>Thanks,
>-Brian.
>
>
>
>
>LEGAL NOTICE:
>Unless expressly stated otherwise, this message is 
>confidential and may be privileged. 
>It is intended for the addressee(s) only. Access to this 
>e-mail by anyone else is unauthorized. 
>If you are not an addressee, any disclosure or copying of the 
>contents or any action taken (or not taken) 
>in reliance on it is unauthorized and may be unlawful. If you 
>are not an addressee, please inform the sender immediately. 
>
>
>
>

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.




LEGAL NOTICE:
Unless expressly stated otherwise, this message is confidential and may be privileged. 
It is intended for the addressee(s) only. Access to this e-mail by anyone else is 
unauthorized. 
If you are not an addressee, any disclosure or copying of the contents or any action 
taken (or not taken) 
in reliance on it is unauthorized and may be unlawful. If you are not an addressee, 
please inform the sender immediately. 



Reply via email to