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

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
On Sun, Mar 15, 2009 at 22:33, wrote: > Hello, > > How to find there're one or more undefined subroutines in a perl scritp? > for example, snip I don't think you are going to like this, but the answer is 100% code coverage testing. Because Perl is a dynamic language, functions can be created at

Re: undefined format error

2008-01-31 Thread oryann9
Please ignore the message below b/c I worked through this. Basically my format code is not printing in a sorted order based off of 'sz' yet it is correctly sorted in @sorted_large_files as you can see below SORTED. How can I tell format to print it sorted based off of 'sz'? Here is how I am so

Re: undefined format error

2008-01-31 Thread John W. Krahn
oryann9 wrote: Hello List, Hello, [ SNIP ] ##-- Begin Format Code --## #==# $^L = q{}; format STDOUT_TOP = REPORT OF LARGE FILES on: @<< qx(hostname) Page @<<< $% FileName

Re: undefined symbol: Perl_sv_2iv_flags

2007-10-24 Thread Prabu Ayyappan
Hi Siva, I doubt the problem is with the version of perl you are using. The symbol Perl_sv_2iv_flags may be introduced with the new version of perl Try with Perl version is: v5.8.9 - Original Message From: sivasakthi <[EMAIL PROTECTED]> To: beginners perl Sent: Wednesday, October 24,

Re: undefined symbol: Perl_sv_2iv_flags

2007-10-23 Thread Tom Phoenix
On 10/23/07, sivasakthi <[EMAIL PROTECTED]> wrote: > I have executed the cgi files , It throws the following error in error > log, Why do you say you found the message in the "error log"? Surely you test your programs before you install them on a server, no? Does the message not appear when you t

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' > > script, with nothing entered in all of the text > > fields.

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 behind this error? Here's the code

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 someone give me an explaination behind this

Re: undefined...

2005-05-24 Thread John W. Krahn
Ley, Chung wrote: I didn't know the use of Data::Dumper, wish I had known it earlier... Basically, I was trying to mimic what the Boxplot.pl was doing, and so I did a loop like this: for (my $k; defined $data[0][1][$k]; $k++ ) { print "data[0][1][$k] is defined

Re: undefined...

2005-05-23 Thread Offer Kaye
On 5/23/05, Ley, Chung wrote: > > Use of uninitialized value in array element at > /usr/lib/perl5/site_perl/5.8.0/GD/Graph/boxplot.pm line 470. Do a dump of the data passed to GD that causes this warning, make sure you are not passing any uninitialized data. > I am dumbfounded... I am thinking

RE: undefined...

2005-05-23 Thread Ley, Chung
'x_label'=> 'Testers', 'y_label' => 'Class Yield' ); die(); -Original Message- From: Offer Kaye [mailto:[EMAIL PROTECTED] Sent: Sunday, May 22,

Re: undefined...

2005-05-22 Thread Offer Kaye
On 5/22/05, Ley, Chung wrote: > > Upon further inspection of the array that I passed into the call, I find out > that for some reasons, > my array's last couple of elements are "defined" but without any values. My > first thought was > that somehow I might have did something like this in my c

RE: undefined...

2005-05-21 Thread Ley, Chung
OTECTED] Sent: Sat 5/21/2005 1:59 AM To: Perl Beginners Subject: Re: undefined... On 5/21/05, Ley, Chung wrote: > Hi, > > I have a piece of code which generates array of arrays which then is used to > call the > GD::Graph::Boxplot... > > For some reasons, I would have elements th

Re: undefined...

2005-05-21 Thread Offer Kaye
On 5/21/05, Ley, Chung wrote: > Hi, > > I have a piece of code which generates array of arrays which then is used to > call the > GD::Graph::Boxplot... > > For some reasons, I would have elements that is defined but has not value. I > have been > going thru the code to see if I had accidenta

RE: Undefined vs uninitialized vs ???

2005-03-14 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Walter A Poor Jr wrote: > This note returns to the problem I sent to Beginner's Digest on March > 3rd, and to which Errin Larsen kindly replied in > issue 2478. > > Here is a direct copy of a small part of one of the functions in a > program which worked fine for months until about two weeks ago (

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

2004-09-13 Thread Bob Showalter
Schlabach, Torsten wrote: > Dear list, > > I have a problem with Perl and I have no idea at all how to search > for it. > > 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

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: >

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

Re: undefined reference to 'boot_DynaLoader'

2004-01-29 Thread david
Karen wrote: > Hi, > > I tried embedding perl into C, and inserted these coz i had an error prior > to this one > *** > static void xs_init _((void)); > EXTERN_C void boot_DynaLoader _((CV* cv)); > EXT

Re: Undefined symbol?

2004-01-26 Thread david
Mark Setzer wrote: > Hey there, > > Wasn't sure which mailing list to send this to but maybe someone can > point me in the right direction. When perl is invoked (presumably by > debian's dpkg command, since that's what causes the error), I get this > message: > > /usr/bin/perl: relocation error

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
On Dec 3, 2003, at 3:59 AM, Jan Gruber wrote: [..] What could be a possible reason, that functions exported by a module appear like that in the Symbol Table: Eris_Gate::__ANON__[/usr/lib/perl5/site_perl/5.8.0/Modules/ Eris_Gate.pm:146] Eris_Gate::__ANON__[/usr/lib/perl5/site_perl/5.8.0/Modules/

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
Jan Gruber wrote: > > What could be a possible reason, that functions exported by a module appear > like that in the Symbol Table: > > Eris_Gate::__ANON__[/usr/lib/perl5/site_perl/5.8.0/Modules/Eris_Gate.pm:146] > Eris_Gate::__ANON__[/usr/lib/perl5/site_perl/5.8.0/Modules/Eris_Gate.pm:147] > Eris_G

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 are Perl functions. You need to look at some > Perl tu

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's manual so you know wha

Re: undefined variables

2003-02-18 Thread Paul
--- Bryan Harris <[EMAIL PROTECTED]> wrote: > Wild, I had no idea perl supported all these notations... LOL!!! There are more TMTOWTDI: There's More Than One Way To Do It. > >> I'd like to concatenate two variables-- > >> $newVar = $old1 . $old2; > >> -- where $old1 might be undefined. Is t

Re: undefined variables

2003-02-17 Thread Paul
--- Bryan Harris <[EMAIL PROTECTED]> wrote: > >> I'd like to concatenate two variables-- > >> $newVar = $old1 . $old2; > >> -- where $old1 might be undefined. Is there any way to set a flag > >> so that this just results in $old2 instead of the compiler throwing > >> an error? > > > > The concate

Re: undefined variables

2003-02-17 Thread Rob Dixon
Rob Dixon wrote: > Bryan Harris wrote: > > > > I'd like to concatenate two variables-- > > > > > > > > $newVar = $old1 . $old2; > > > > > > > > -- where $old1 might be undefined. Is there any way to set a > > > > flag so that this just results in $old2 instead of the compiler > > > > throwing an e

Re: undefined variables

2003-02-17 Thread Rob Dixon
Bryan Harris wrote: > > > I'd like to concatenate two variables-- > > > > > > $newVar = $old1 . $old2; > > > > > > -- where $old1 might be undefined. Is there any way to set a > > > flag so that this just results in $old2 instead of the compiler > > > throwing an error? > > > > The concatenation o

Re: undefined variables

2003-02-17 Thread Jenda Krynicky
From: Bryan Harris <[EMAIL PROTECTED]> > I'd like to concatenate two variables-- > > $newVar = $old1 . $old2; > > -- where $old1 might be undefined. Is there any way to set a flag so > that this just results in $old2 instead of the compiler throwing an > error? It's not an error, but a warning.

Re: undefined variables

2003-02-17 Thread Bryan Harris
>> I'd like to concatenate two variables-- >> >> $newVar = $old1 . $old2; >> >> -- where $old1 might be undefined. Is there any way to set a flag so >> that this just results in $old2 instead of the compiler throwing an >> error? > > The concatenation operator will work fine with an undefined

Re: undefined variables

2003-02-17 Thread Rob Dixon
Bryan Harris wrote: > I'd like to concatenate two variables-- > > $newVar = $old1 . $old2; > > -- where $old1 might be undefined. Is there any way to set a flag so > that this just results in $old2 instead of the compiler throwing an > error? The concatenation operator will work fine with an unde

Fwd: Re: undefined symbol: Perl_Gthr_key_ptr

2002-07-17 Thread Sajith K
86-linux-thread /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl . --- Paul Johnson <[EMAIL PROTECTED]> wrote: > Date: Tue, 16 Jul 2002 11:05:09 +0200 > From: Paul Johnson <[EMAIL PROTECTED]> > To: Sajith K <[EMAIL PROTECTED]> > Subje

Re: undefined symbol: Perl_Gthr_key_ptr

2002-07-15 Thread drieux
On Monday, July 15, 2002, at 10:42 , Sajith K wrote: > i am trying to use perl with a public domain tool. > on executiong use PLSTAF; i am getting the following > error: > > /usr/bin/perl: error while loading shared > libraries: /usr/lib/perl5/5.6.0/libPLSTAF.so: > undefined symbol: Perl_Gthr_ke

Re: undefined symbol: Perl_Gthr_key_ptr

2002-07-15 Thread Paul Johnson
On Mon, Jul 15, 2002 at 10:42:35AM -0700, Sajith K wrote: > i am trying to use perl with a public domain tool. > on executiong use PLSTAF; i am getting the following > error: > > /usr/bin/perl: error while loading shared > libraries: /usr/lib/perl5/5.6.0/libPLSTAF.so: > undefined symbol: Perl_Gt

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/tour/newsearchall.pl line 1026. > >

RE: undefined variable

2002-01-31 Thread Darren Simpson
cool. thats how i do it :-) you don't think i actually write any code do you ;-) -Original Message- From: Debbie McNerney [mailto:[EMAIL PROTECTED]] Sent: 30 January 2002 18:14 To: Beginners perl Subject: undefined variable Please accept my apologies for being so dumb. I am a beginner a

Re: undefined variable

2002-01-30 Thread Dave Benware
Debbie McNerney wrote: > > Please accept my apologies for being so dumb. I am a beginner and really > have done basic perl scripting by using the "copy and paste and modify" > method of script writing. > > I have a server running Solaris 8. From what I can determine, perl is > version 4 on it

RE: undefined variable

2002-01-30 Thread Jonathan E. Paton
> Please accept my apologies for being so dumb. Not required. > I am a beginner and really have done basic perl > scripting by using the "copy and paste and modify" > method of script writing. Beginners learn by whatever means pleases them. Examining other people's code is quite a good method

RE: undefined variable

2002-01-30 Thread Wagner-David
It seems to look fine. The only thing you might do(some would say you need to do) is use -w as part of the #! line and add 'use strict' to see what this kicks out. Wags ;) -Original Message- From: Debbie McNerney [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 10:14