Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://157044]
help
Chatterbox?
[choroba]: Good morning from home!
[choroba]: (took a sickday to stay with my son)

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2017-04-27 07:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (501 votes). Check out past polls.