Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: /HTML is valid perl?

by japhy (Canon)
on Oct 23, 2001 at 07:52 UTC ( #120703=note: print w/ replies, xml ) Need Help??

in reply to /HTML is valid perl?

To Perl, <HTML> looks like a line-read from the filehandle HTML. However, if you have something that isn't a filehandle (or a variable holding a filehandle) in there, Perl sees it as a file glob. </HTML> is the glob /HTML. Even something as simple as whitespace (as shown below) triggers this distinction.

Here's some fiendish Perl:

<perl >; <head type="pragma">; use strict; </head >; <body >; my $name = "japhy"; my $code = "evil"; my $reasons = "plenty"; </perl >;

Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Comment on Re: /HTML is valid perl?
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2015-10-10 07:14 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (255 votes), past polls