logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: TMPL_VAR inside a TMPL_VAR: msg#00013

lang.perl.modules.html-template

Subject: Re: TMPL_VAR inside a TMPL_VAR

Hi Timm,
 
Thanks for the quick response.  I looked at the H:T documentation, and I see the reference to scalarref and arrayref, but I don't understand what they mean or exactly how I might use them.  If I understand your note correctly, I would need add the scalarref like this:
 
my $cell_fmt = qq (align="right" style="cursor:pointer;cursor:hand;"
                      title="Click to drill down"
                     
                      >
                  );
$tmpl_main = HTML::Template->new( scalarref => $cell_fmt );
 
However, I get the following error:  "nc_rpt_summary.pl: Can't use string ("align="right" style="cursor:poin") as a SCALAR ref while "strict refs" in use at /usr/local/lib/perl5.8.0/site_perl/HTML/Template.pm line 1597."
 
I've also tried using just a "q", using a HERE doc, and I get pretty much the same error each time.  So, obviously, I'm using it incorrectly but I don't understand why.  Any ideas?  If you're willing, would you give me a dumbed down version?  ;-)
 
Thanks!
 
Lori Thompson

Timm Murray <tmurray@xxxxxxxxxxxx> wrote:
At 02:14 PM 1/8/04 -0800, LDT wrote:
<>
>Am I missing something, or am I trying to do something naughty?

HTML::Template won't expand entries that were placed into
another . What you probably want is a
. Alternatively, you can create another HTML::Template
object out of the data inlined in your program now via the scalarref
parameter. You can fill in this data as normal, and then pass its output
to the main template's .


Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
krysalis.sandbo...    web.zope.zwiki/...    gnome.apps.gnum...    xfree86.newbie/...    editors.vim/200...    mozilla.enigmai...    boot-loaders.gr...    network.vnc.ult...    redhat.release....    java.geronimo.u...    os.netbsd.devel...    horde.wicked/20...    linux.lsb.discu...    ietf.ips/2005-0...    alsa.devel/2002...    user-groups.lin...    package-managem...    debian.devel.da...    security.cyrus....    video.gstreamer...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation