Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 chanting in the Monastery: (19)
As of 2014-12-22 13:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (118 votes), past polls