Kyle -- ...and then Kyle Babich said... % % Ok, I've got it down to one problem right now, I need an explicit % package name for this: % foreach $key(keys %pages) { % print "<a href=\"$pages{$key}\">$key</a>\n"; % }
Well, only if you use it that way :-) % % It says I need it for $key but no matter where I put the my it won't % stop giving me that error. Where in that does the my go? Right in front of the declaration (first use), of course: [zero] [8:45am] ~> \ perl -we 'use strict; my %pages = (); foreach $key (keys %pages) {print ".\n"}' Global symbol "$key" requires explicit package name at -e line 1. Execution of -e aborted due to compilation errors. [zero] [8:46am] ~> ^each^each my^ perl -we 'use strict; my %pages = (); foreach my $key (keys %pages) {print ".\n"}' [zero] [8:46am] ~> HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg05469/pgp00000.pgp
Description: PGP signature