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
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
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
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
--- 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.
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
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
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
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:
>
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
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
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
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/
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
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
Dynamic page...just some server side include and a menu.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
> 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
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
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
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
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
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
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
> 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.
>
>
24 matches
Mail list logo