loadable object error

2002-12-24 Thread todd shifflett
I have a perl script which will work on my home computer, however, when I upload the script to the hosting site I recieve an error concerning a loadable object in GD.pm. I assume this is because there is some module missing on the hosting site. How do I determine what that is? Here is the

how to return the array from a reference?

2002-11-23 Thread todd shifflett
I have a subroutine which makes a number of recursive calls and uses as input a scalar reference from an array. I am able to retrieve the number from the reference, however, I would also like to print out the array and index information that was used. Ultimately I get this: (A)

changes to CGI module?

2002-11-23 Thread todd shifflett
I have a cgi script which used to run very well. Now, after setting up a new computer and installing a more recent version of CGI.pm I recieve errors: this used to be all I needed: use CGI qw/:all *table td tr/; to do the folowing: print $q-start_table(); print $q-tr( $q-td()); print

Fwd: code ref and objects

2002-11-14 Thread todd shifflett
I have not had a chance to try this yet but it sounds very promising. Begin forwarded message: From: Jeff 'japhy' Pinyan [EMAIL PROTECTED] Date: Wed Nov 13, 2002 2:02:59 PM US/Pacific To: [EMAIL PROTECTED] Subject: Re: code ref and objects On Nov 13, todd shifflett said: the above works

code ref and objects

2002-11-13 Thread todd shifflett
I am trying to use a code reference from within a function to recursively call a given separate function... #--- LIKE THIS --vv sub hello { my $name = shift; return Hello, $name!\n; } sub foo { my($f, @args) = @_; return $f(@args); } print foo(\hello, world); #---^^ the above works.

Changing @INC

2002-11-05 Thread todd shifflett
I just re-installed perl 5.8.0 on my mac. When I did the new version was placed into /opt/bin where I do not want it so I moved all the files and man pages to where they should be. Now How do I change the @INC array? I would also like to know how to change the other information listed with

Re: Changing @INC (libgd and the GD module)

2002-11-05 Thread todd shifflett
something other than OSX your situation would be different. p.s. I am running the standard unix version of perl, not macperl. todd shifflett said: I just re-installed perl 5.8.0 on my mac. When I did the new version was placed into /opt/bin where I do not want it so I moved all the files

Trouble installing GD.pm

2002-11-05 Thread todd shifflett
Using: Mac OSX 10.2 libgd 2.0.4 Can anyone help me make something of this? when I try and install GD.pm I get the following errors: cc -c -I/sw/include -I/usr/local/include/gd -I/usr/lib -I/System/Library/Perl -pipe -fno-common -no-cpp-precomp -fno-strict-aliasing -O3

writing/reading records with Data::Dumper

2002-07-31 Thread todd shifflett
I am having trouble re-reading a record after I write it. This is my situation (I'll try and be as concise as possible): I have an object ($profile) with methods, variables, and variables of other objects. For example: $profile = MY_PROFILE-new(); $profile-{NAME} = theName;

Re: writing/reading records with Data::Dumper

2002-07-31 Thread todd shifflett
For those who are interested... This seems to work but I don't know why: foreach $element (@elements) { my $profile = MY_PROFILE-new(); $profile = eval(eval(Dumper($element))); push(@profileArray,$profile); } On Wednesday, July 31, 2002, at 11:51 AM, todd