Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Templating algorithm - pass in variables vs callback?

by lachoy (Parson)
on Mar 01, 2005 at 02:36 UTC ( [id://435264]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Foo;
    sub new   { return bless ( { count => 1 } ) }
    sub count { $_[0]->{count}++ }
    1;
    
  2. or download this
    use Foo;
    use Template;
    ...
    Call: [% bar.count %]
    Call: [% bar.count %]
    Call: [% bar.count %]
    
  3. or download this
    I am calling methods on the object named 'bar':
    
    Call: 1
    Call: 2
    Call: 3
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://435264]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-16 23:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found