develooper Front page | perl.perl5.porters | Postings from December 2004

[perl #33608] Problems in Perl 5.6.1 (Can"t locate object method "ToUpper" via package "main" (perhaps you forgot to load "main"?) )

Thread Previous
Sravanth Kumar Nagunuri
December 31, 2004 02:05
[perl #33608] Problems in Perl 5.6.1 (Can"t locate object method "ToUpper" via package "main" (perhaps you forgot to load "main"?) )
Message ID:
# New Ticket Created by  "Sravanth Kumar Nagunuri" 
# Please include the string:  [perl #33608]
# in the subject line of all future correspondence about this issue. 
# <URL: >

We have ported our application from PERL5.0.1 to PERL5.6.1 
We got the following error during execution of our perl script. 
Can"t locate object method "ToUpper" via package "main" (perhaps you
forgot to load "main"?) at
/d/nmsopt/nokianms/lib/perl5/5.6.1/ line 30, <CONFIG> line
59.. Terminating 

We could not find method "ToUpper" in any library of 5.6.1. Basically
the error message says that "main package is not loaded". 
We don't have a method "ToUpper" in our Perl code also. How to locate
this method and how to correct this situation?
Please let us know how to over come this situation.
Perl Version: This is perl, v5.6.1 built for PA-RISC2.0      
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
    osname=hpux, osvers=11.11, archname=PA-RISC2.0
    uname='hp-ux turtola b.11.11 u 9000785 2005532668 unlimited-user
license '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    cc='cc', ccflags =' +z -D_HPUX_SOURCE +DAportable +DS2.0
    cppflags='+z -D_HPUX_SOURCE -Aa +DAportable +DS2.0'
    ccversion='', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='ld', ldflags ='-L/opt/nokianms/lib  -Wl,+vnocompatwarnings
-L/usr/local/lib -L/opt/local/lib'
    libpth=/opt/nokianms/lib /lib/pa1.1 /usr/local/lib /opt/local/lib
/lib /usr/lib /usr/ccs/lib
    libs=-lcl -lpthread -lnsl -lnm -lndbm -lmalloc -ldld -lm -lc -lndir
-lcrypt -lsec
    perllibs=-lcl -lpthread -lnsl -lnm -lmalloc -ldld -lm -lc -lndir
-lcrypt -lsec
    libc=/lib/, so=sl, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-B,deferred -Wl,+s'
    cccdlflags='+z', lddlflags='-b +vnocompatwarnings
-L/opt/nokianms/lib -L/usr/local/lib -L/opt/local/lib'
Characteristics of this binary (from libperl): 
  Compile-time options: USE_LARGE_FILES
  Built under hpux
  Compiled at Aug 25 2003 21:00:00
Sravanth Kumar Nagunuri

Confidentiality Notice 

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or immediately
and destroy all copies of this message and any attachments.
Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About