At 04:10 PM 10/25/2001 -0700, tom poe wrote: >Hi, Zentara: I fiddled [far more than one would expect], and used the >recently posted write to file format above, and it works with the top line, >"#! /usr/bin/perl -w". But, if I add "use strict;" at the top of the script, >I can't compile: >tompoe@aether:~/perlStuff > createpng >Global symbol "$im" requires explicit package name at ./createpng line 5. >Global symbol "$red" requires explicit package name at ./createpng line 7. >Global symbol "$im" requires explicit package name at ./createpng line 7. > (more errors snipped) > >So, since we're here, do you understand what the message is? A required >explicit package name? I'm lost. Thanks, Tom
You should first understand what 'use strict;" does before anything: perldoc strict Turning on strict mode requires that you declare your variable scope before using them. This is the source of your errors. Aloha, mel -- mel matsuoka (vox)1.808.531.5474 Head Geek (fax)1.808.526.4040 Hawaiian Image Productions [EMAIL PROTECTED] http://hawaiianimage.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]