I usually write something like
print "this is just text $$refH{key}";
On 17/12/2003, at 6:58 PM, Alexander Samad wrote:
Hi
I have a hash array which is being passed by ref, now I would like to access an element inside an "" for a print statement
like
print "This is just text $refH->{"Key"} this is still text\n"
but I keep getting errors so I have to re write as
print "This is just text " . $refH->{"Key"} . " this is still text\n"
Which causes problems if $refH->{"Key"} equates to blank
A -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
