Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 browsing the Monastery: (2)
As of 2014-09-24 02:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (244 votes), past polls