Re: test.cgi hashing error

2002-06-24 Thread Kyle Babich
That confuses me; I would just copy and paste and that would be it but I would have no idea how that is working and I don't really want to put anything in that I don't understand yet. Is there a simpler way that would be more like: my $links = #hash here ; > > Kyle, et al -- > > ...and the

Re: test.cgi hashing error

2002-06-24 Thread David T-G
Kyle -- ...and then Kyle Babich said... % % That confuses me; I would just copy and paste and that would be it but % I would have no idea how that is working and I don't really want to put I think that's a wise course :-) % anything in that I don't understand yet. Is there a simpler way th

Re: test.cgi hashing error

2002-06-24 Thread David T-G
Kyle, et al -- ...and then Kyle Babich said... % % This is what I have: % % my %pages = ("Yahoo","http://www.yahoo.com/";, % "Google", "http://www.google.com/";, % "All The Web", "http://www.alltheweb.com/";); % % while ( my ($key, $pages) = each %pages ) { %print qq{$key}; %

Re: test.cgi hashing error

2002-06-23 Thread Kyle Babich
This is what I have: my %pages = ("Yahoo","http://www.yahoo.com/";, "Google", "http://www.google.com/";, "All The Web", "http://www.alltheweb.com/";); while ( my ($key, $pages) = each %pages ) { print qq{$key}; } How could I put this all into a scalar to call up later? Than

Re: test.cgi hashing error

2002-06-23 Thread Ovid
--- Kyle Babich <[EMAIL PROTECTED]> wrote: > Ok, I've got it down to one problem right now, I need an explicit > package name for this: > foreach $key(keys %pages) { > print "$key\n"; > } > > It says I need it for $key but no matter where I put the my it won't > stop giving me that error

Re: test.cgi hashing error

2002-06-23 Thread Jordan Mclain
or you could leave out the "$key". foreach (keys %pages) { print "$key\n"; } On Sun, 2002-06-23 at 08:59, Marty Landman wrote: > At 07:37 AM 6/23/02 -0400, Kyle Babich wrote: > > >foreach $key(keys %pages) { > > print "$key\n"; > >} > > > >It says I need it for $key but no matt

Re: test.cgi hashing error

2002-06-23 Thread Marty Landman
At 07:37 AM 6/23/02 -0400, Kyle Babich wrote: >foreach $key(keys %pages) { > print "$key\n"; >} > >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? Kyle, this is a syntactic 'not-nicety' of Perl imho. You need

Re: test.cgi hashing error

2002-06-23 Thread David T-G
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 "$key\n"; % } Well, only if you use it that way :-) % % It says I need it for $key but no matter where I put the

Re: test.cgi hashing error

2002-06-23 Thread Kyle Babich
Ok, I've got it down to one problem right now, I need an explicit package name for this: foreach $key(keys %pages) { print "$key\n"; } 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? > > > Kyle -- > > ...

Re: test.cgi hashing error

2002-06-23 Thread David T-G
Kyle -- ...and then Kyle Babich said... % % Ok, I decided to make my test.cgi into a kind of refernce page for when % I'm creating my site. There is some kind of problem with my hash. % Once again can someone explain to me what I'm doing wrong? As perl tells you, there are a few errors. %