Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

A query on Perl debugger!!!

by pijush (Scribe)
on Apr 23, 2004 at 05:00 UTC ( [id://347537]=perlquestion: print w/replies, xml ) Need Help??

pijush has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

On HP-UX 11.o I have built my perl with following options
config_args=''hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=define useithreads=undef usemultiplicity=undef useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef
Now when I trying to start debugging a perl script then it is giving following error
%perl -d test.pl

Default die handler restored.
Loading DB routines from perl5db.pl version 1.07
Editor support available.
Enter h or `h h' for help, or `man perldebug' for more help.
"globally" is not defined in %File::Glob::EXPORT_TAGS at /home/porting/pkoley/project/Testing/Perl/lib/5.6.1/PA-RISC2.0-thread/File/Glob.pm line 23

Can anyone please tell me what I have done wrong?
Thanks in advance.
Regards
-Pijush

Replies are listed 'Best First'.
Re: A query on Perl debugger!!!
by BrowserUk (Patriarch) on Apr 23, 2004 at 05:28 UTC

    Your script (or the environment variable PERL5OPT perhaps) contains a line

    use File:Glob 'globally'; that should be
    use File::Glob ':globally'; #...............^

    perhaps?

    This is based upon the fact that I can reproduce the error using

    P:\test>perl -MFile::Glob=globally -de1 Loading DB routines from perl5db.pl version 1.23 Editor support available. Enter h or `h h' for help, or `perldoc perldebug' for more help. "globally" is not exported by the File::Glob module Can't continue after import errors at -e line 0 BEGIN failed--compilation aborted.

    And avoid it using

    P:\test>perl -MFile::Glob=:globally -de1 Loading DB routines from perl5db.pl version 1.23 Editor support available. Enter h or `h h' for help, or `perldoc perldebug' for more help. main::(-e:1): 1 DB<1> Config::DESTROY(c:/Perl/lib/Config.pm:1198):

    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
      No, in my script I have not used File::Glob and the same script is running fine on Linux and solaris, obviously perl is built on Linux and Solaris respectively on those cases.
      -Regards
      Pijush
Re: A query on Perl debugger!!!
by castaway (Parson) on Apr 23, 2004 at 10:42 UTC
    Can you reduce your script to something short that works on the other machines, but not on HP-UX, and post it, maybe? (Or post the whole thing here, if its not too long).

    I have a couple of HP perls here, not self-built though. Where did you build them from? And which perl version?

    C.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-25 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found