RE: scalar context question

2001-07-03 Thread Joseph P. Discenza
Ron Grabowski wrote, on Tuesday, July 03, 2001 1:26 PM : > > I don't think it would force a scalar context. => is just a shorthand : for comma in a list. In other words, $b in the following three : code segments : would get the same results: : : A comma that adds single quotes the value to its l

Re: scalar context question

2001-07-03 Thread Ron Grabowski
> > I don't think it would force a scalar context. => is just a shorthand for comma in a list. In other words, $b in the following three code segments would get the same results: A comma that adds single quotes the value to its left. ___ Perl-Win32-Us

Re: scalar context question

2001-07-03 Thread David Johnson
> $b = {'a1'=> 'c1', 'a2'=> 1, 2 => 3}; > > Linchi > > > -Original Message- > > From: David Johnson [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, July 03, 2001 11:54 AM > > To: Perl Users > > Subject: scalar cont

scalar context question

2001-07-03 Thread David Johnson
I'm writing a large tool that includes parsing of html templates. My parser looks for $$\w$$ strings in the html file and substitutes them for a corresponding string passed to the parser in a hash reference. It is called like this: iPrint('editNSRec',{'$$MSG$$'=>@rows,'$$NS_EDIT_AREA$$'=>$nsEdi