Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Getting all used parameters from a Template::Toolkit template

by Corion (Patriarch)
on Mar 11, 2009 at 08:12 UTC ( [id://749813]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Name: [% user_name %]
    Password: [% user_pass %]
    
  2. or download this
    my @items = find_used_template_parameters($template);
    is_deeply \@items, [qw[ user_name user_pass ]];
    
  3. or download this
    Name: [% user_name %]
    Password: [% user_pass %]
    [% IF has_unused_fields('/^user_/') %]
    [% list_unused_fields('/^user_/') %]
    [% END %]
    
  4. or download this
    Name: Corion
    Password: Secret
    user_email: corion@corion.net
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://749813]
Approved by GrandFather
Front-paged by DrHyde
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-19 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found