perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Schilling <rschill...@nationalinformatics.net>
Subject proper referencing of hashes returned by fetchrow_hashref . . .
Date Wed, 25 Jun 2003 02:05:59 GMT
Just a quick question, and perhaps it's a Perl language question.  I 
forget, but why do you have to reference a hash with a double "$$" when 
you use fetchrow_hashref?

	[-
	use DBI;

	# code to open connection, run query, etc . . .
	-]

	[$ if $hashed_row = $query->fetchrow_hashref $]
	fieldname: [+ $$hashed_row{'fieldname'} +]<br>
	[$ endif $]

Don't know why but for some reason I'm drawing a blank . . .

Thanks.

--Richard

	 
		 
		 

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message