Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Answer: Can I do Server-Side-Includes in Perl?

by qslack (Scribe)
on Nov 26, 2001 at 06:13 UTC ( #127462=note: print w/replies, xml ) Need Help??


in reply to Re: Can I do Server-Side-Includes in Perl?
in thread Can I do Server-Side-Includes in Perl?

open(FILE, "filename") or die "$!\n"; print while <FILE>;
also works, and it's a bit more concise. You will want to change the die part for your specific application, but it's better than no error handling.

Quinn Slack
perl -e 's ssfhjok qupyrqs&&tr sfjkohpyuqrspitnrapj"hs&&eval&&s&&&'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2022-12-09 23:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?