[htmltmpl] RE: Html-template-users digest, Vol 1 #253 - 2 msgs
Brought to you by:
samtregar
From: Jeff P. <jp...@gr...> - 2003-08-20 14:33:24
|
Howdy Chisel, Thanks for the input! The $$text_ref may have been too obvious. I have used $@text_ref and $%text_ref to dereference arrays and hashes before but had never thought of using "$$text_ref". As it turns out, after I got back yesterday of several days off things worked fine. I apparently just needed to reboot; go figure and on a windows box too! ;>/ I am going to reboot my development box every afternoon from here on out. Thanx Again, Jeff. >> YA?: What does the "$$" mean in $$test_ref. >$text_ref is a reference to a scalar, so to get the text itself you need >to dereference it. >It's proably easier to understand if you think of it as ${$text_ref}. >It's the same as you'd do with hash an array references. >> my $filter = sub { >> my $text_ref = shift; >> $text_ref =~ s/!!!ZAP_(.*?)!!!/<TMPL_$1>/g; >> $$text_ref; >> ## Also Tried Adding "return $text_ref;" - No Difference. >> }; CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information, the disclosure of which is governed by applicable law. If the reader of this e-mail is not the intended recipient(s), any unauthorized review, use, disclosure or distribution is prohibited. If you have received this message in error, please contact the sender by reply e-mail and destroy all copies of the original message immediately. |