Undefined subroutine &Compress::Zlib::gzdopen_ ... , perl-5.8.8

2010-06-09 Thread shashidhar v
usr/local/lib/perl5/site_perl/5.8.8/Compress/Zlib.pm line 218. Undefined subroutine &Compress::Zlib::gzdopen_ called at /opt/globus-4.0.7/lib/perl/Archive/Tar.pm line 250. make: *** [globus_core-thr] Error 2 bash-2.03$ whether the problem is with perl modules ?? kindly help Thanks & Regards, shashi

Re: Undefined Subroutine

2010-04-08 Thread Jim Gibson
On 4/8/10 Thu Apr 8, 2010 2:48 PM, "Ron Wingfield" scribbled: > #!/usr/bin/perl -wT > use strict; > use warnings; > use CGI; > use CGI::Carp qw(fatalsToBrowser); > my $q = new CGI; > > sub whatever { > print "Got into \"whatever's\" subroutine $_[0]"; > } > print $q->header, > $q->st

Undefined Subroutine

2010-04-08 Thread Ron Wingfield
#!/usr/bin/perl -wT # #sub_test.pl . . .just a proof-of-concept # to get subroutines to be recognized. use strict; use warnings; use CGI; use CGI::Carp qw(fatalsToBrowser); my $q = new CGI; #- #my $con = $q->param('c

Re: undefined subroutine

2009-03-15 Thread Chas. Owens
On Mon, Mar 16, 2009 at 00:34, John W. Krahn wrote: > practicalp...@gmail.com wrote: >> >> Hello, > > Hello, > >> How to find there're one or more undefined subroutines in a perl scritp? > > perldoc -f defined > snip How, exactly, does defined(&func) help you find the typo fucn? -- Chas. Owens

Re: undefined subroutine

2009-03-15 Thread John W. Krahn
practicalp...@gmail.com wrote: Hello, Hello, How to find there're one or more undefined subroutines in a perl scritp? perldoc -f defined John -- Those people who think they know everything are a great annoyance to those of us who do.-- Isaac Asimov -- To unsubscribe, e-mail: begi

Re: undefined subroutine

2009-03-15 Thread Chas. Owens
ted bar() because \$foo was set\n" }; } bar(); If $foo is true then the bar function gets created and there is no error, if $foo is false then the bar function does not exist and an "Undefined subroutine" error is thrown. This means if you want to be certain that you Perl program

undefined subroutine

2009-03-15 Thread practicalperl
Hello, How to find there're one or more undefined subroutines in a perl scritp? for example, use strict; use warnings; if (1) { test1(); } else { test2(); } sub test1 { print 1; } __END__ in above code, when tes2t() isn't executed, we may not have the chance to know test2() is n

Re: Illegal use of undefined subroutine..

2007-05-02 Thread Randal L. Schwartz
> "Somu" == Somu <[EMAIL PROTECTED]> writes: Somu> Actually, that was just an example to explain my problem. I am facing Somu> this problem when i use Tk. Any subroutine associated with the Somu> -command option of a button widget. Somu> use Tk; Somu> my $mw = MainWindow->new; Somu> my $b =

Re: Illegal use of undefined subroutine..

2007-05-01 Thread Chas Owens
On 5/1/07, Somu <[EMAIL PROTECTED]> wrote: Actually, that was just an example to explain my problem. I am facing this problem when i use Tk. Any subroutine associated with the -command option of a button widget. use Tk; my $mw = MainWindow->new; my $b = $mw->Button(-text=>'hello',-command=>su

Re: Illegal use of undefined subroutine..

2007-05-01 Thread John W. Krahn
Somu wrote: > Actually, that was just an example to explain my problem. I am facing > this problem when i use Tk. Any subroutine associated with the > -command option of a button widget. > > use Tk; > my $mw = MainWindow->new; > my $b = $mw->Button(-text=>'hello',-command=>sub { &welcome })->pack;

Re: Illegal use of undefined subroutine..

2007-05-01 Thread Somu
Because if define it, it says 'Global variable "$l" needs...' what do i do? Actually, i am not happy nor sad that the subroutine needed a declaration before use.. I'm using ActivePerl 5.8.8 on Windows XP -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: Illegal use of undefined subroutine..

2007-05-01 Thread Somu
Actually, that was just an example to explain my problem. I am facing this problem when i use Tk. Any subroutine associated with the -command option of a button widget. use Tk; my $mw = MainWindow->new; my $b = $mw->Button(-text=>'hello',-command=>sub { &welcome })->pack; my $l = $mw->Label(-text

Re: Illegal use of undefined subroutine..

2007-05-01 Thread Chas Owens
On 5/1/07, Somu <[EMAIL PROTECTED]> wrote: my $s = <>; my $t = <>; conc ( $s , $t ); sub conc { my $str = $_[0].$_[1]; print $str; } Why? It works allright only after add an extra line at the top, that is sub conc; its become just like C Your code works just fine for me (no errors)

Re: Illegal use of undefined subroutine..

2007-05-01 Thread Chas Owens
On 5/1/07, Chas Owens <[EMAIL PROTECTED]> wrote: On 5/1/07, Somu <[EMAIL PROTECTED]> wrote: > my $s = <>; > my $t = <>; > conc ( $s , $t ); > sub conc { > my $str = $_[0].$_[1]; > print $str; > } > > > Why? It works allright only after add an extra line at the top, that is > sub conc; >

Re: Illegal use of undefined subroutine..

2007-05-01 Thread Tom Phoenix
On 5/1/07, Somu <[EMAIL PROTECTED]> wrote: my $s = <>; my $t = <>; conc ( $s , $t ); sub conc { my $str = $_[0].$_[1]; print $str; } Why? Why not? It works allright only after add an extra line at the top, that is sub conc; its become just like C Are you asking a question? Per

Illegal use of undefined subroutine..

2007-05-01 Thread Somu
my $s = <>; my $t = <>; conc ( $s , $t ); sub conc { my $str = $_[0].$_[1]; print $str; } Why? It works allright only after add an extra line at the top, that is sub conc; its become just like C -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] htt

Re: Undefined subroutine &Main::BadData called at line 42

2006-10-01 Thread Ron Smith
--- Aaron Priven <[EMAIL PROTECTED]> wrote: > > On Sep 30, 2006, at 7:30 PM, Ron Smith wrote: > > > Hi all, > > > > I get the error: "Undefined subroutine > &Main::BadData > > called at line 42" when executing the following > '.cgi

Re: Undefined subroutine &Main::BadData called at line 42

2006-10-01 Thread Rob Dixon
Ron Smith wrote: Hi all, I get the error: "Undefined subroutine &Main::BadData called at line 42" when executing the following '.cgi' script, with nothing entered in all of the text fields. I'm unfamiliar with this error. Could someone give me an explaination b

Re: Undefined subroutine &Main::BadData called at line 4

2006-09-30 Thread Tom Phoenix
On 9/30/06, Ron Smith <[EMAIL PROTECTED]> wrote: I get the error: "Undefined subroutine &Main::BadData called at line 42" when executing the following '.cgi' script, with nothing entered in all of the text fields. I'm unfamiliar with this error. Could som

Undefined subroutine &Main::BadData called at line 42

2006-09-30 Thread Ron Smith
Hi all, I get the error: "Undefined subroutine &Main::BadData called at line 42" when executing the following '.cgi' script, with nothing entered in all of the text fields. I'm unfamiliar with this error. Could someone give me an explaination behind this error? Here

Re: FILE::copy gives error undefined subroutine

2006-03-16 Thread Mr. Shawn H. Corey
JupiterHost.Net wrote: a) FILE::copy probably doesn;t exist but rather: File::Copy Sadly :( FILE::copy does exist in some operating systems; like MS DOS and Mac OX S. This is because they do not distinguish between uppercase and lowercase in file names. Perl seems to find the correct module

Re: FILE::copy gives error undefined subroutine

2006-03-16 Thread Sonika Sachdeva
Thanks for the pointers. On 3/16/06, JupiterHost.Net <[EMAIL PROTECTED]> wrote: > > Hello, > > > > > Please try to write cleaner code, its hard to read :) (See "Perl Best > Practices" by Damian Conway, Oreilley) > > > > > undefined subrouti

Re: FILE::copy gives error undefined subroutine

2006-03-16 Thread JupiterHost.Net
Hello, Please try to write cleaner code, its hard to read :) (See "Perl Best Practices" by Damian Conway, Oreilley) undefined subroutine &main::copy What could be the mistake? a) FILE::copy probably doesn;t exist but rather: File::Copy b) you have not imported co

Re: FILE::copy gives error undefined subroutine

2006-03-16 Thread Sonika Sachdeva
> > >print LOGHANDLE "Success :",$FILEHASH{$filename}[3],"\n"; > > >$FILEHASH{$filename}[0]=0; > > >if ( $FILEHASH{$filename}[3] =~ /.*NTSC.*/i ) {copy ( > > > "$SRCDIR\\$FILEHASH{$filename}[3]" , "$SMBMOUNTNTSC&q

Re: FILE::copy gives error undefined subroutine

2006-03-16 Thread Sonika Sachdeva
; , "$SMBMOUNTNTSC" ) or warn "copy > > error: $!\n" ;} > >elsif ($FILEHASH{$filename}[3] =~ /.*PAL.*/i ){ copy ( > > "$SRCDIR\\$FILEHASH{$filename}[3]" , "$SMBMOUNTPAL" ) or warn "copy > > error: $!\n" ;} > > } > > > > > > > > > > undefined subroutine &main::copy > > > > What could be the mistake? > > > > Thanks, > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > >

Re: FILE::copy gives error undefined subroutine

2006-03-16 Thread Mr. Shawn H. Corey
Sonika Sachdeva wrote: Hi All, I have used FILE::copy , perl syntax check is OK. and am getting the following error when it tries to perform the copy function . This is on windows system. That has to be: use File::Copy; Case is important in Perl. On certain OSes, like Mac OS X, case in file n

Re: FILE::copy gives error undefined subroutine

2006-03-16 Thread Dermot Paikkos
or: $!\n" ;} >elsif ($FILEHASH{$filename}[3] =~ /.*PAL.*/i ){ copy ( > "$SRCDIR\\$FILEHASH{$filename}[3]" , "$SMBMOUNTPAL" ) or warn "copy > error: $!\n" ;} > } > > > > > undefined subroutine &main::copy > > What could be the mistake? > > Thanks, > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

FILE::copy gives error undefined subroutine

2006-03-16 Thread Sonika Sachdeva
RCDIR\\$FILEHASH{$filename}[3]" , "$SMBMOUNTNTSC" ) or warn "copy error: $!\n" ;} elsif ($FILEHASH{$filename}[3] =~ /.*PAL.*/i ){ copy ( "$SRCDIR\\$FILEHASH{$filename}[3]" , "$SMBMOUNTPAL" ) or warn "copy error: $!\n" ;} } undefined subroutine &main::copy What could be the mistake? Thanks,

AW: Undefined subroutine [...] called at [...] though sub and rou tine exist

2004-09-13 Thread Schlabach, Torsten
subs at a given point in time? Torsten -Ursprüngliche Nachricht- Von: Bob Showalter [mailto:[EMAIL PROTECTED] Gesendet: Montag, 13. September 2004 18:50 An: 'Schlabach, Torsten'; '[EMAIL PROTECTED]' Betreff: RE: Undefined subroutine [...] called at [...] though sub and rou tine e

AW: Undefined subroutine [...] called at [...] though sub and rou tine exist

2004-09-13 Thread Schlabach, Torsten
Well, it's not really MY code, but I will attach it. It is line 103 that breaks! (The call to genDialog.) Torsten -Ursprüngliche Nachricht- Von: Jenda Krynicky [mailto:[EMAIL PROTECTED] Gesendet: Montag, 13. September 2004 18:47 An: '[EMAIL PROTECTED]' Betreff: Re: Undef

RE: Undefined subroutine [...] called at [...] though sub and rou tine exist

2004-09-13 Thread Bob Showalter
); > > } > > sub usedLater{ > > [... some code ...] > > } > > 1; > > The call > > usedLater( $argument ); > > leads to this errror > > Undefined subroutine &FooModule::usedLater called at ... > > Any idea where to search? This i

Re: Undefined subroutine [...] called at [...] though sub and routine exist

2004-09-13 Thread Jenda Krynicky
From: "Schlabach, Torsten" <[EMAIL PROTECTED]> > I have a CGI script that is calling a perl module. One function in > that module uses a sub which is defined only later in the source, but > there is a forward declaration available for the function with sub. > Conceptionally this looks like this: >

Undefined subroutine [...] called at [...] though sub and routine exist

2004-09-13 Thread Schlabach, Torsten
. Conceptionally this looks like this: FooModule.pm: package FooModule; sub usedLater; sub theFunctionCalledFromoutside{ ... ... usedLater( $argument ); } sub usedLater{ [... some code ...] } 1; The call usedLater( $argument ); leads to this errror Undefined subroutine &FooMo

Re: undefined subroutine with recursives uses

2004-04-27 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (3li Marion) writes: >I encounter a very strange problem with interactions between main program >and several modules. > >If there is no interaction between modules (module1 calling module2 and >module2 calling module1) there is no problem with any

Re: undefined subroutine with recursives uses

2004-04-27 Thread Randy W. Sims
On 4/26/2004 12:01 PM, 3li Marion wrote: I encounter a very strange problem with interactions between main program and several modules. If there is no interaction between modules (module1 calling module2 and module2 calling module1) there is no problem with any sub each module. But if the mod1 us

undefined subroutine with recursives uses

2004-04-26 Thread 3li.marion
I encounter a very strange problem with interactions between main program and several modules. If there is no interaction between modules (module1 calling module2 and module2 calling module1) there is no problem with any sub each module. But if the mod1 uses 'use mod2' and mod2 uses 'use mod

Re: Undefined subroutine

2003-12-03 Thread drieux
On Dec 3, 2003, at 7:55 AM, Jan Gruber wrote: [..] Where is Eris_Gate.pm, and what is its package declaration? From what you say it should be in /usr/lib/perl5/site_perl/5.8.0/Modules Right, its in there. and should read package Modules::Eris_Gate NO, it didn't. It read "package Eris_gate" bef

Re: Undefined subroutine

2003-12-03 Thread drieux
the script, but calling a sub defined in there results in "Undefined subroutine &main::return_sumfink called at " It might help us if you told us where we could find this module, and what it is suppose to be about. What am i missing? As Rob noted, there is that question of how

Re: Undefined subroutine

2003-12-03 Thread Jan Gruber
Hi > Where is Eris_Gate.pm, and what is its package declaration? From > what you say it should be in > /usr/lib/perl5/site_perl/5.8.0/Modules Right, its in there. > and should read > package Modules::Eris_Gate NO, it didn't. It read "package Eris_gate" before. Thanks, I missed this one at

Re: Undefined subroutine

2003-12-03 Thread Rob Dixon
exported, @EXPORT_OK is empty > and the package @ISA (Exporter). > > I use Modules::Eris_Gate; in the script, but calling a sub defined in there > results in "Undefined subroutine &main::return_sumfink called at " At first guess it looks like a problem with DynaLoader.

Undefined subroutine

2003-12-03 Thread Jan Gruber
::Eris_Gate; in the script, but calling a sub defined in there results in "Undefined subroutine &main::return_sumfink called at " What am i missing? TIA Jan -- cat /dev/world | perl -e "while (<>) {(/(^.*?\?) 42\!/) && (print $1)}" errors->(c) - --

Re: undefined subroutine

2003-10-09 Thread Dodo
Dynamic page...just some server side include and a menu. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: undefined subroutine

2003-10-09 Thread Dan Muey
> I'm trying to convert so I can use a server that doesn't > support PHP, but I'm giving up. With my limited knowledge I That's a good server. I've had more trouble with php on our webservers I'd almost get rid of it,. But one guy use the PHPBB forum so I can't unless he stops using it! > thi

Re: undefined subroutine

2003-10-08 Thread Dodo
I'm trying to convert so I can use a server that doesn't support PHP, but I'm giving up. With my limited knowledge I think it's impossible. I was told that the scripting was all Perl, so conversion should have been easy. But, I guess there's some C mixed in there as well or maybe some of it is PHP

Re: undefined subroutine

2003-10-08 Thread Dodo
I'm trying to convert so I can use a server that doesn't support PHP, but I'm giving up. With my limited knowledge I think it's impossible. I was told that the scripting was all Perl, so conversion should have been easy. But, I guess there's some C mixed in there as well or maybe some of it is PHP

Re: undefined subroutine

2003-10-08 Thread Rob Dixon
Jeff 'Japhy' Pinyan wrote: > > On Oct 8, Rob Dixon said: > > > >Jeff 'Japhy' Pinyan wrote: > >> > >> open BLAH, "< c:/Inetpub/wwwroot/dg/menu.txt" > >> or die "can't read c:/Inetpub/wwwroot/dg/menu.txt: $!"; > > > > my $fd; > > open $fd, '< c:/Inetpub/wwwroot/dg/menu.txt'; > > > >might be a

Re: undefined subroutine

2003-10-08 Thread Jeff 'japhy' Pinyan
On Oct 8, Rob Dixon said: >Jeff 'Japhy' Pinyan wrote: >> >> open BLAH, "< c:/Inetpub/wwwroot/dg/menu.txt" >> or die "can't read c:/Inetpub/wwwroot/dg/menu.txt: $!"; > > my $fd; > open $fd, '< c:/Inetpub/wwwroot/dg/menu.txt'; > >might be a better match? With $fd in place of 'BLAH' in the >r

Re: undefined subroutine

2003-10-08 Thread Rob Dixon
Jeff 'Japhy' Pinyan wrote: > > On Oct 8, Dodo said: > > >Undefined subroutine &main::fopen called at C:\Inetpub\wwwroot\dg\index.pl > >line 91. > >I get the same error for filesize, fclose, explode and include. > > That's because none of those

Re: undefined subroutine

2003-10-08 Thread Jeff 'japhy' Pinyan
On Oct 8, Dodo said: >Undefined subroutine &main::fopen called at C:\Inetpub\wwwroot\dg\index.pl >line 91. >I get the same error for filesize, fclose, explode and include. That's because none of those are Perl functions. You need to look at some Perl tutorial or beginner&#x

undefined subroutine

2003-10-08 Thread Dodo
I'm doing a php to pl migration and having a little trouble. Help appreciated! Undefined subroutine &main::fopen called at C:\Inetpub\wwwroot\dg\index.pl line 91. I get the same error for filesize, fclose, explode and include. $fd = fopen('C:\Inetpub\wwwroot\dg\menu.txt',&quo

Undefined subroutine &Net::SSH::Perl::Util::SSH1Misc::_crc32

2003-06-04 Thread giblert s
>login($user, $passwd); $ssh->cmd("who"); ##### when i execute, i get error message: "Undefined subroutine &Net::SSH::Perl::Util::SSH1Misc::_crc32 called at /usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl/Packet.pm line 127, line 1." and i'm sure

Re: Undefined subroutine

2002-03-08 Thread Jonathan E. Paton
> Greetings everyone, > > I have a script serving pages on our website, and > every now and then it gives me an Internal Error > and the logs say: > > [Thu Mar 7 15:19:33 2002] [error] Undefined > subroutine &pollstar::singleadvert called at > /home/pollstar

Undefined subroutine

2002-03-07 Thread Agustin Rivera
Greetings everyone, I have a script serving pages on our website, and every now and then it gives me an Internal Error and the logs say: [Thu Mar 7 15:19:33 2002] [error] Undefined subroutine &pollstar::singleadvert called at /home/pollstar/tour/newsearchall.pl line 1026. But the routin