Re: Passing a class to subs

2001-07-04 Thread Me
First: Can't modify subroutine entry in character translation at ...ESEC_VALIDATE.pm line 31, near "tr /[a-z]/[A-Z]/;" The matching line is: $q->params('company') =~ tr/[a-z]/[A-Z]/; This line attempts to change the thing on the left hand side, and perl doesn't see the thing on the

Re: Passing a class to subs

2001-07-04 Thread Mark James
Hi I am sure this is not supposed to be so hard but I still cannot get the hang of passing these objects around. What I am trying to do is work with CGI.pm I have a cgi object and I also want to break my program up into subs to keep it clean and easy to code. So I create a CGI object. It's gre

Re: Passing a class to subs

2001-06-21 Thread Me
> require "$LIBRARY_DIR/castime_html.pm"; > use CGI; # load CGI routines > use strict 'vars'; > my $q = new CGI; # create new CGI object > > if (! $q->param()) { > &draw_tnc(); > } > > So far so good except &draw_tnc() is in the required

Passing a class to subs

2001-06-21 Thread Mark James
Hi Guys I know this looks like a cgi problem but I believe it is more of a varable scoping problem I just happen to be having with the CGI module. While I am waiting for answers to this I am off to buy the most reccomended ""Learning Perl" book. Thanks for any help I have this code. require