Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Dynamically altering static TT templates

by markmoon (Deacon)
on Apr 05, 2002 at 20:27 UTC ( #157044=note: print w/ replies, xml ) Need Help??


in reply to Re: Dynamically altering static TT templates
in thread Dynamically altering static TT templates

Would adding the following to each template file cover it?:

open(TEMPLATE FILEHANDLE,$0); print "# ",$0;
$0 contains the name of the file being read. I haven't played with TT (or templates) yet so this is just a hopeful guess.
--
@a = ("a".."z"," ","-","\n");
@b = (12,0,17,10,24,12,14,14,13,26,8,18,26,0,26,
22,0,13,13,0,27,1,4,26,15,4,17,11,26,7,0,2,10,4,17,28);
print map {$a$_} @b;


Comment on Re: Re: Dynamically altering static TT templates
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2015-07-28 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls