Hi Brent,
it shouldn't be a problem the way he wrote the pm, unless he doesn't
'return' anything in the subroutines.
I had a similar problem having to convert a pm and the script I was
using into 'strict'. I values that I could use between the pm and the
script when 'strict' was off couldn't be passed anymore. The problem
was; I didn't define my variables correctly in the script and the pm
didn't return any values the script could use.
See the thread 'Scope', but especially this thread on how to call pm's
with strict on.
http://www.nntp.perl.org/group/perl.beginners/77359
Todd
P.S. Since I'm just learning this stuff myself, if anyone sees
something incorrect please let me know! Thanks
On Aug 19, 2005, at 9:40 AM, Brent Clark wrote:
Hi list
I have a problem whereby another new programmer (like myself) likes
NOT to use strict in his code where by I do.
The problem is that I have is that he as writting a pm file and
basically just did is as so:
use pm file
&somename;
sub somename {
$var1 = $linex[0];
$var2 = $linex[1];
and the list goes on.
}
But now I have to use that pm file but and because i use strict, perl
basically just spits out
Global symbol "$roomCode" requires explicit package name at C:/Program
Files/Apache Group/Apache2/cgi-bin/updatePropDatFile.pl line 103.
so my question is, is there any way I can use local or something to
stop strict from moaning about this varibles.
Any tips etc would greatfully be appreciated.
Kind Regards
Brent Clark
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>