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

Re: Very Flexible HTML Template System

by Zaxo (Archbishop)
on Jun 20, 2001 at 04:32 UTC ( #89877=note: print w/ replies, xml ) Need Help??


in reply to Very Flexible HTML Template System

I think sub ReadFile should be more portable about line ends:

sub ReadFile { unless (open(INFILE,"< $_[0]")) {return 0;} my $readin = join //, map {chomp;$_} <INFILE>; close(INFILE); $readin; }

I expect there are other spots needing similar treatment

I was tempted to change your open statement, but it's your code and that would change the interface.

After Compline,
Zaxo


Comment on Re: Very Flexible HTML Template System
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (13)
As of 2014-09-18 17:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (120 votes), past polls