Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 meditating upon the Monastery: (17)
As of 2015-07-30 18:40 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 (273 votes), past polls