Re: Trap undefined barewords in subroutines

2017-08-02 Thread Shawn H Corey
On Wed, 2 Aug 2017 18:48:43 + "Dyer, Dustin E. (KSC-VAH10)" wrote: > So is there something different I can do to cause an error when > provided files contain undefined barewords? Do you mean something like this? my $someVar = '[map {$_ - 250 * FT2M} 1,2,3,]'; #F

Re: Trap undefined barewords in subroutines

2017-08-02 Thread Chas. Owens
;; }; my $result = eval $perl_code or do { print "The perl code:\n\n$perl_code\n\ndied with $@"; exit; }; print encode_json $return; On Wed, Aug 2, 2017 at 2:55 PM Dyer, Dustin E. (KSC-VAH10) < dustin.e.d...@nasa.gov> wrote: > How can I detect and/or error on undefined bareword

Trap undefined barewords in subroutines

2017-08-02 Thread Dyer, Dustin E. (KSC-VAH10)
How can I detect and/or error on undefined barewords in perl subroutines? I receive data files in perl, and I'd like to read them into Matlab. Some of the files contain barewords that I don't have an implementation for. When I process these files using the do command, the undefined

if(defined(undef)) gives can't use undefined value as a SCALAR reference.

2014-08-30 Thread Dave Horner
Artifactory-Client: zero length file uploads https://rt.cpan.org/Public/Bug/Display.html?id=97772 'expect' => '100-continue' undefined value as a SCALAR reference #63 https://github.com/libwww-perl/libwww-perl/issues/63 if(defined($wbits)) is giving me can't use and

Re: Stopping undefined warnings

2014-06-23 Thread SSC_perl
I just realized that I can add no warnings 'uninitialized'; to the entire script, which probably makes my last question moot. Unless there's an answer that someone likes better, just disregard that question. I can't think straight with this cold. Not that I need an excuse. ;)

Re: Stopping undefined warnings

2014-06-23 Thread SSC_perl
On Jun 17, 2014, at 1:27 PM, Jim Gibson wrote: > I would split your one, long line into several lines and use a temporary > variable to hold the possibly undefined value and assigning '' to it if it is > undefined: I like that idea. Thanks, Jim. However, t

Re: printing hash having undefined key

2014-06-23 Thread Shaji Kalidasan
key 123 value abc key value xsd key value ajk key 456 value dfg [/output] Hope it helps. On Mon, Jun 23, 2014 at 12:49 PM, Sunita Pradhan < sunita.pradhan.2...@hotmail.com> wrote: > Here is my code where i want to print one hash with one key undefined . I > have condition pri

printing hash having undefined key

2014-06-23 Thread Sunita Pradhan
Here is my code where i want to print one hash with one key undefined . I have condition print if key exist . I guess it should not print value for undefined key , but it does . #!/usr/bin/perl -w @array = ("abc", 123, "dfg" ,456, "xsd",undef); %hash = reverse @

Re: Stopping undefined warnings

2014-06-17 Thread Andy Bach
pyTempFile('image'); > } > > > I find that much more readable and will not generate any undefined > warnings. > Well, it might if {form} is a missing level: $ cat /tmp/h.pl #!perl use strict; use warnings; my $global ; $global->{ form} = {image_upload => "image&q

Re: Stopping undefined warnings

2014-06-17 Thread Jim Gibson
On Jun 17, 2014, at 1:02 PM, SSC_perl wrote: > What's the best way to stop undefined warnings for code like this: > > $data->{'image'} = CopyTempFile('image') if ($main::global->{'admin'} && > $main::global->{'form

Stopping undefined warnings

2014-06-17 Thread SSC_perl
What's the best way to stop undefined warnings for code like this: $data->{'image'} = CopyTempFile('image') if ($main::global->{'admin'} && $main::global->{'form'}->{'image_upload'} ne '');

Re: Identifying the current opened filehandle for writing as I'm getting undefined variable concatenation errors

2014-01-14 Thread Matt McAdory
while (@array2) { >> chomp; >> my $thing = $var->sub3($_); # returns a scalar >> print $FH "$thing\n"; >> # >> BOOM!?!? >> } >> } >> >> >>

Re: Identifying the current opened filehandle for writing as I'm getting undefined variable concatenation errors

2014-01-14 Thread Rob Dixon
ew stuff in another array, prints again to the module FH while (@array2) { chomp; my $thing = $var->sub3($_); # returns a scalar print $FH "$thing\n"; # BOOM!?!? } } the last print always

Re: Identifying the current opened filehandle for writing as I'm getting undefined variable concatenation errors

2014-01-14 Thread Brian Fraser
(@array2) { > chomp; > my $thing = $var->sub3($_); # returns a scalar > print $FH "$thing\n"; > ##### BOOM!?!? > } > } > > > > > the last print always give me a ". . . . concatenate (.)

Identifying the current opened filehandle for writing as I'm getting undefined variable concatenation errors

2014-01-14 Thread Matt McAdory
e module FH while (@array2) { chomp; my $thing = $var->sub3($_); # returns a scalar print $FH "$thing\n"; # BOOM!?!? } } the last print always give me a ". . . . concatenate (.) to undefined

Re: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol: Perl_Gthr_key_ptr [SOLVED?]

2011-09-21 Thread 'lesleyb'
git" still failed with the > same error i've seen before: > > /home/rpjday/WindRiver/prj/4.3/vrf_host/host-cross/bin/perl > Makefile.PL > PREFIX='/home/rpjday/WindRiver/prj/4.3/vrf_host/host-cross' > /home/rpjday/WindRiver/prj/4.3/vrf_host/host-cross/bin/perl: sy

Re: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol: Perl_Gthr_key_ptr [SOLVED?]

2011-09-21 Thread Robert P. J. Day
me/rpjday/WindRiver/prj/4.3/vrf_host/host-cross' /home/rpjday/WindRiver/prj/4.3/vrf_host/host-cross/bin/perl: symbol lookup error: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol: Perl_Gthr_key_ptr Makefile:41: *** [perl.mak] Error 127 and now another google shows me this: https://bu

Re: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol: Perl_Gthr_key_ptr

2011-09-21 Thread 'lesleyb'
On Wed, Sep 21, 2011 at 08:31:10AM -0400, Robert P. J. Day wrote: > On Wed, 21 Sep 2011, 'lesleyb' wrote: > > > On Wed, Sep 21, 2011 at 07:24:51AM -0400, Robert P. J. Day wrote: > > > > > > argh ... after just skipping the component that was causing the > > > earlier error, i got further and the

Re: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol: Perl_Gthr_key_ptr

2011-09-21 Thread Robert P. J. Day
On Wed, 21 Sep 2011, Paul Johnson wrote: > On Wed, Sep 21, 2011 at 09:17:40AM -0400, Robert P. J. Day wrote: ... snip ... > > but there's a possible solution. when one initially configures > > the project, one can select that *all* of those host tools will be > > rebuilt from scratch. that w

Re: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol: Perl_Gthr_key_ptr

2011-09-21 Thread Paul Johnson
e > > > earlier error, i got further and then this: > > > > > Probably a good idea to unskip it and fix the problem there first. > > > > > perl: symbol lookup error: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined > > > symbol: Perl_Gthr_key_ptr > > >

Re: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol: Perl_Gthr_key_ptr

2011-09-21 Thread Robert P. J. Day
On Wed, 21 Sep 2011, Paul Johnson wrote: > That symbol would be defined in libperl.so and is on my system.. It > sounds very much as if this software is not playing nicely. Does it > have its own version of perl, perhaps embedded? i think i may have addressed in my last post, where the build

Re: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol: Perl_Gthr_key_ptr

2011-09-21 Thread Robert P. J. Day
a to unskip it and fix the problem there first. > > > perl: symbol lookup error: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined > > symbol: Perl_Gthr_key_ptr > > error: Bad exit status from > > /home/rpjday/WindRiver/prj/4.3/vrf/build/perl-Convert-ASN1-0.21/rpm-tmp.42187 > >

Re: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol: Perl_Gthr_key_ptr

2011-09-21 Thread Paul Johnson
On Wed, Sep 21, 2011 at 08:31:10AM -0400, Robert P. J. Day wrote: > On Wed, 21 Sep 2011, 'lesleyb' wrote: > > > On Wed, Sep 21, 2011 at 07:24:51AM -0400, Robert P. J. Day wrote: > > > > > > perl: symbol lookup error: /usr/lib/perl5/auto/Cwd/Cwd.so: u

Re: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol: Perl_Gthr_key_ptr

2011-09-21 Thread Robert P. J. Day
a to unskip it and fix the problem there first. > > > perl: symbol lookup error: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined > > symbol: Perl_Gthr_key_ptr > > error: Bad exit status from > > /home/rpjday/WindRiver/prj/4.3/vrf/build/perl-Convert-ASN1-0.21/rpm-tmp.42187 > >

Re: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol: Perl_Gthr_key_ptr

2011-09-21 Thread 'lesleyb'
/usr/lib/perl5/auto/Cwd/Cwd.so: undefined > symbol: Perl_Gthr_key_ptr > error: Bad exit status from > /home/rpjday/WindRiver/prj/4.3/vrf/build/perl-Convert-ASN1-0.21/rpm-tmp.42187 > (%build) > which looks like a symbol isn't in the symbol table of the shared object Cwd.so. >

/usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol: Perl_Gthr_key_ptr

2011-09-21 Thread Robert P. J. Day
argh ... after just skipping the component that was causing the earlier error, i got further and then this: perl: symbol lookup error: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol: Perl_Gthr_key_ptr error: Bad exit status from /home/rpjday/WindRiver/prj/4.3/vrf/build/perl-Convert-ASN1-0.21

Re: symbol lookup error: .../Parser.so: undefined symbol: Perl_Istack_sp_ptr

2011-09-21 Thread Robert P. J. Day
On Wed, 21 Sep 2011, Robert P. J. Day wrote: > On Wed, 21 Sep 2011, Francisco Rivas wrote: > > > Hello, > > > > I went through the same issue and what I found was just recompile > > the module in your case it would be HTML::Parser, what i did is CPAN > > - install HTML::Parser or use packer for it

Re: symbol lookup error: .../Parser.so: undefined symbol: Perl_Istack_sp_ptr

2011-09-21 Thread Robert P. J. Day
On Wed, 21 Sep 2011, Francisco Rivas wrote: > Hello, > > I went through the same issue and what I found was just recompile > the module in your case it would be HTML::Parser, what i did is CPAN > - install HTML::Parser or use packer for it. > > I hope this can help you. ok, so just to be clear,

Re: symbol lookup error: .../Parser.so: undefined symbol: Perl_Istack_sp_ptr

2011-09-21 Thread Francisco Rivas
quot; to generate > the docs in various formats, but that's where this happens: > > cd Pacemaker_Explained && /usr/local/bin/publican build --publish > --langs=all --formats=pdf,html,html-single,txt > perl: symbol lookup error: /usr/lib/perl5/auto/HTML/Parser/Parser.so: > undefined symb

symbol lookup error: .../Parser.so: undefined symbol: Perl_Istack_sp_ptr

2011-09-21 Thread Robert P. J. Day
rate the docs in various formats, but that's where this happens: cd Pacemaker_Explained && /usr/local/bin/publican build --publish --langs=all --formats=pdf,html,html-single,txt perl: symbol lookup error: /usr/lib/perl5/auto/HTML/Parser/Parser.so: undefined symbol: Perl_Istack_sp_ptr Mak

Re: Using an undefined value as a hash reference

2011-08-07 Thread Octavian Rasnita
ust like in case it would have used %parameters instead of @parameters... it doesn't break. Octavian - Original Message - From: "Shlomi Fish" To: "Octavian Rasnita" Cc: Sent: Sunday, August 07, 2011 3:52 PM Subject: Re: Using an undefined value as a hash ref

Re: Using an undefined value as a hash reference

2011-08-07 Thread Shlomi Fish
Agent->new; > my $res = $ua->get( 'http://www.google.com/', %$fields ); > > This script runs with no errors, although the variable $fields is undefined > and it is used as a hash reference and I don't understand why. > > If I use it in the following line however,

Using an undefined value as a hash reference

2011-08-07 Thread Octavian Rasnita
Hi, I made the following test script: use strict; use warnings FATAL => 'all'; use LWP::UserAgent; my $fields; my $ua = LWP::UserAgent->new; my $res = $ua->get( 'http://www.google.com/', %$fields ); This script runs with no errors, although the variable $fields is

Re: excluding undefined variables

2010-12-12 Thread shawn wilson
On Mon, Dec 13, 2010 at 1:05 AM, John W. Krahn wrote: > shawn wilson wrote: >> >> i'm trying to exclude undefined variables for that are to be put into >> a sql database date field, but none of this is working: >> >> sub correctdate {             # make valid

Re: excluding undefined variables

2010-12-12 Thread John W. Krahn
shawn wilson wrote: i'm trying to exclude undefined variables for that are to be put into a sql database date field, but none of this is working: sub correctdate { # make valid sql DATE field my $date = $_[ 0 ]; my ($month, $day, $year) = split / /, $date if defined(

Re: excluding undefined variables

2010-12-12 Thread Brian Fraser
; return $corrected; > Also, if I may, a word about your code: You keep testing some variables for definedness, but don't do anything when they are undefined, so you end up piling on checks. Wouldn't it be simpler to return early? For instance, if $date isn't defined, nothing else

Re: excluding undefined variables

2010-12-12 Thread shawn wilson
On Sun, Dec 12, 2010 at 8:11 PM, shawn wilson wrote: > i'm trying to exclude undefined variables for that are to be put into > a sql database date field, but none of this is working: errr, sorry, my error with the current code is: Global symbol "$corrected" requires exp

excluding undefined variables

2010-12-12 Thread shawn wilson
i'm trying to exclude undefined variables for that are to be put into a sql database date field, but none of this is working: sub correctdate { # make valid sql DATE field my $date = $_[ 0 ]; my ($month, $day, $year) = split / /, $date if defined( $date ); $day =~ s/,/

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(&fun

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

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, fu

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

Re: what is wrong w/ this program? (getting undefined value.. but I don't understand) please help

2008-07-15 Thread Richard Lee
John W. Krahn wrote: Or you could do it like this: #!/usr/bin/perl use warnings; use strict; use diagnostics; print '---', join( ':', getpwnam 'root' ), "---\n", join( ':', getpwnam 'ellie' ), "\n"; __END__ John Thank you for through explanation John as always!! -- To unsubscribe, e-ma

Re: what is wrong w/ this program? (getting undefined value.. but I don't understand) please help

2008-07-15 Thread John W. Krahn
Richard Lee wrote: what is wrong w/ below program??? use warnings; use strict; use diagnostics; #open 'PASSWD', '<', '/etc/passwd' or die "cannot open: $!\n"; open (PASSWD1, "/etc/passwd") or die "cannot open: $!\n"; my $line; while ( chomp($line = ) ) { The problem is that you are using

Re: what is wrong w/ this program? (getting undefined value.. but I don't understand) please help

2008-07-15 Thread Richard Lee
; while ( chomp($line = ) ) { print "---$line---\n" if $line =~ /root/; } seek(PASSWD1, 0, 0) or die "$!\n"; while() { print if /ellie/;} close PASSWD1; Use of uninitialized value in chomp at ./seek_.pl line 11 (#1) (W uninitialized) An undefined value was used as if

what is wrong w/ this program? (getting undefined value.. but I don't understand) please help

2008-07-15 Thread Richard Lee
) ) { print "---$line---\n" if $line =~ /root/; } seek(PASSWD1, 0, 0) or die "$!\n"; while() { print if /ellie/;} close PASSWD1; Use of uninitialized value in chomp at ./seek_.pl line 11 (#1) (W uninitialized) An undefined value was used as if it were alread

Re: undefined format error

2008-01-31 Thread oryann9
lients/0x001321EAA5D2/recovery/2007-10-16,23:39/flist /var/opt/ignite/clients/0x00306E4B4C3A/recovery/2008-01-15,09:44/flist /var/adm/sw/save/PHCO_34255/VXVM-RUN/etc/vx/static.d/build/vold.o - Original Message From: oryann9 <[EMAIL PROTECTED]> To: Perl List Sent: Thursday, January 31, 20

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

undefined format error

2008-01-31 Thread oryann9
Hello List, I am hoping for some help with this. I did post this same question to PerlMonks. Undefined format "STDOUT" called at find_hog.tdy line 173. Line 173 is the 1st write statement, but since there are snips in there 173 is not the actual line in this email. Just look for

Re: undefined symbol: Perl_sv_2iv_flags

2007-10-24 Thread Prabu Ayyappan
ber 24, 2007 9:33:56 AM Subject: undefined symbol: Perl_sv_2iv_flags Hi All, I have executed the cgi files , It throws the following error in error log, symbol lookup error: /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/GD/GD.so: undefined symbol: Perl_sv_2iv_flags,referer

Re: undefined symbol: Perl_sv_2iv_flags

2007-10-23 Thread Tom Phoenix
ge not appear when you test your program offline? > symbol lookup > error: /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/GD/GD.so: > undefined symbol: Perl_sv_2iv_flags,referer: http://... Something is misconfigured or misinstalled. It seems likely that the GD module

undefined symbol: Perl_sv_2iv_flags

2007-10-23 Thread sivasakthi
Hi All, I have executed the cgi files , It throws the following error in error log, symbol lookup error: /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/GD/GD.so: undefined symbol: Perl_sv_2iv_flags,referer: http://... Perl version is: v5.8.8 perl-Gd rpm is : perl-GD-2.35-1.fc5

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: Can't use an undefined value as a HASH reference at

2006-07-21 Thread Mumia W.
On 07/21/2006 02:08 PM, Jerry DuVal wrote: When trying to use the class below I keep getting this error message. Any idea's, I have tried everything. Can't use an undefined value as a HASH reference at /usr/share/perl5/Pace/Sockets/Client.pm line 37. [...]

Can't use an undefined value as a HASH reference at

2006-07-21 Thread Jerry DuVal
When trying to use the class below I keep getting this error message. Any idea's, I have tried everything. Can't use an undefined value as a HASH reference at /usr/share/perl5/Pace/Sockets/Client.pm line 37. ERROR - Aborting abnormally... error code = 2 message = Can't use an

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,

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
ave did something like this in my code: >data[0][1] = $yield; (where $yield was an undefined value). > So, I did a check on $yield value first before assigning it... That didn't > seem to solve the > problem... My next assumption is that maybe I somehow "skipped&q

RE: undefined...

2005-05-21 Thread Ley, Chung
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 code: data[0][1] = $yield; (where $yield was an undefined value). So, I did a check on

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

undefined...

2005-05-20 Thread Ley, Chung
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 accidentally assigned null values or if I had accidentally

RE: Undefined vs uninitialized vs ???

2005-03-14 Thread Wagner, David --- Senior Programmer Analyst --- WGO
D OF CODE COPIED FROM PROGRAM > > Note: all variables were declared before this block of code, and the > variable $debug03MARCH was explicitly set equal to zero before this > block of code. > > > When the program is run, the following warning appears: > >

Undefined vs uninitialized vs ???

2005-03-14 Thread Walter A Poor Jr
M Note: all variables were declared before this block of code, and the variable $debug03MARCH was explicitly set equal to zero before this block of code. When the program is run, the following warning appears: START OF WARNING MESSAGE Use of uninitialized value in string eq at Analysis_

Undefined symbol boot_DynaLoader, boot_Socket

2004-09-23 Thread Paul Boyce
l -lm -lc > gccoutput 2>&1 The error message is as follows: -- Undefined first referenced symbol in file boot_DynaLoader /var/tmp//ccbgVfzA.o boot_Socket /var/tmp//ccbgVfzA.o ld: fatal: Symbol

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: can´t call method "xyz" on an undefined value at...

2004-09-03 Thread Charles K. Clarkson
Bastian Angerstein <[EMAIL PROTECTED]> wrote: : Now I gate can´t call methode can on an undefined : value xyz line xyz. Any Idea? Show us your code. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.or

can´t call method "xyz" on an undefined value at...

2004-09-03 Thread Bastian Angerstein
Now I gate can´t call methode can on an undefined value xyz line xyz. Any Idea? -Ursprüngliche Nachricht- Von: Charles K. Clarkson [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 3. September 2004 10:37 An: 'Bastian Angerstein'; 'Mailinglist Perl Beginners' Betreff: R

RE: can´t call method "xyz" on an undefined value at...

2004-09-03 Thread Charles K. Clarkson
Bastian Angerstein <[EMAIL PROTECTED]> wrote: : How can I check if a Method is undefined or not without : getting this error? Assuming you mean the method to an object. Use the UNIVERSAL method 'can'. use CGI; my $q = CGI->new(); print "method 'xyz' i

Re: can´t call method "xyz" on an undefined value at...

2004-09-03 Thread Ing. Branislav Gerzo
Bastian Angerstein [BA], on Friday, September 3, 2004 at 10:19 (+0200) wrote these comments: BA> I, once again, have a question. BA> How can I check if a Method is undefined or not without getting this error? maybe defined() helps. -- ...m8s, cu l8r, Brano. [Love conquers all thin

can´t call method "xyz" on an undefined value at...

2004-09-03 Thread Bastian Angerstein
Good Morning, I, once again, have a question. How can I check if a Method is undefined or not without getting this error? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

dyld: /usr/bin/perl Undefined symbols:

2004-08-13 Thread Jeff Thomas
I am currently using MacOSX10.3.5 and Perl 5.8.1. Shell scripts and perl files that once worked before upgrading the OS a couple of times are failing and reporting the stuff below. Anyone have a clue? dyld: /usr/bin/perl Undefined symbols: _PL_curpad _PL_markstack_ptr _PL_na _PL_op

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

  1   2   >