Hi. I think the list is missing a post or two in this thread?
Anadi Taylor wrote: > > From: "Luinrandir Hernsen" <[EMAIL PROTECTED]> > > To: "Anadi Taylor" <[EMAIL PROTECTED]> > > Subject: Re: please please comfirm (was Parsing variables) > > Date: Mon, 3 Mar 2003 18:53:19 -0500 > > > > > <snip> I might be barking up the wrong tree here but I have never > > > seen querystring information seperated by semi colons ; > > I got it from another web site but they are using a style sheet.. > > maybe thats why? > > I think it is because of the & ???? In this anchor: <a href="move.pl?direction=NW&cx=5&cy=10&player=Lou;"> the separators in the href URL are ampersands, each one coded as the character entity & which requires the semicolon as its terminator. The 'real' URL is therefore: move.pl?direction=NW&cx=5&cy=10&player=Lou; which is still odd in that 'player' is 'Lou;', but that shouldn't be a problem. > > OK why { } instaed of ( ) > > I have always used the curley braces to get the information from a > hash, which is the way you are storing your querystring data. > I guess the thing to do is to try both ways but i know the { works > !!!! The brackets (), [], {} and <> all have special meanings in Perl. The parentheses are generally used for prioritising, in the traditional way. Braces are used in several different contexts, but in this case (I imagine, without seeing it!) they are used to delimit a hash key: $hash{'key'} in the same way as square brackets are used to index an array. Using parentheses here, as in: $hash('key') looks like a subroutine call, but is just a syntax error. Cheers, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]