Ask a Question related to PERL Beginners, Design and Development.
-
Perldiscuss - Perl Newsgroups And Mailing Lists #1
Can't not locate object method "isadmin" via package "Noc1"
Hello all,
I just added a new method called isadmin to existing and
working module Noc1.pm
And use this new added method in my index.html like this
use Noc1;
my $noc = new noc1;
my public = noc->ispublic();
my $admin = noc->isadmin();
if ($admin) { blah blah blah}
When i tried to access index.html i got the error msg...
can't locate object method "isadmin" via package 'Noc1" at
..../index.html line 21
Do you know what is the problem here ?
Everything works fine with Noc1.pm and index.html until i
add my new method isadmin in.
thanks for your help
Perldiscuss - Perl Newsgroups And Mailing Lists Guest
-
Can't locate object method "newFromJpeg" via package "GD::Image"
Hi. I'm trying to execute this Perl simple script: -------- #!/usr/bin/perl use GD; my $srcimage = GD::Image->newFromJpeg("image_news.jpg");... -
Can't locate object method "blocking" via package "IO::Handle"
I am receiving the error message: Can't locate object method "blocking" via package "IO::Handle" at... -
GD::Image: Can't locate object method "newFromJpeg"
Hi. I'm trying to execute this script ----------------------------------- use GD; my $srcimage = GD::Image->newFromJpeg("image_news.jpg");... -
Can't locate object method "new" via package "Net::SMTP"
I'm attempting to use the line: $smtp = Net::SMTP->new("mailhost.myisp.co.uk"); however it generates the error message: Can't locate object... -
Can't locate object method "get" via package "LWP::UserAgent"
#!/usr/bin/perl use strict; use URI; #use HTTP::Request::Common qw(GET); use LWP; #use HTTP::Response; my $browser = LWP::UserAgent->new;... -
Dan Muey #2
RE: Can't not locate object method "isadmin" via package "Noc1"
> I just added a new method called isadmin to existing and
Did you create Noc1 ???> working module Noc1.pm
index.html ??? Hows' that work?>
> And use this new added method in my index.html like this
^^^^^^ ^^^>
> use Noc1;
> my $noc = new noc1;
> my public = noc->ispublic();
Do you mean $public and $noc ??
^^^> my $admin = noc->isadmin();
$noc again??
Did you make it exportable?>
> if ($admin) { blah blah blah}
>
> When i tried to access index.html i got the error msg...
> can't locate object method "isadmin" via package 'Noc1" at
> .../index.html line 21
>
> Do you know what is the problem here ?
I sit really in there just like that?
How about some backgound on Noc1.pm and some code from it to show how it's used
HTH> Everything works fine with Noc1.pm and index.html until i
> add my new method isadmin in.
>
> thanks for your help
DMuey
Dan Muey Guest



Reply With Quote

