Keep It Simple, Stupid | |
PerlMonks |
Re: open a file and print out to webbrowserby Sidhekin (Priest) |
on Oct 30, 2007 at 19:15 UTC ( [id://648089]=note: print w/replies, xml ) | Need Help?? |
Ah. PerlScript. :) One problem is with your filename string:
Double-quoted strings treat backslash as starting escape sequences. Use single quotes instead:
A more fundamental problem is that you're not checking if your open succeeded. A standard check would have revealed this problem to you:
... that is, if you know where to find the error log. It's been too long since I looked at ASP and PerlScript. Oh, and you have a syntax error. Typo? for each should be foreach, or simply for:
print "Just another Perl ${\(trickster and hacker)},"
In Section
Seekers of Perl Wisdom
|
|