On Thu, Aug 09, 2001 at 04:17:36PM -0500, David L. Nicol wrote:
> Jeff 'japhy/Marillion' Pinyan wrote:
> 
> > Why not:
> > 
> >   0=~"(?\173\LPRINT\E'J\LUST ANOTHER\E P\LERL\E H\LACKER\12'\175)";
> > 
> > 65 chars.
> 
> Wow.  Why does binding this string to 0 cause it to get evald?
> 

It's a regular expression match.  \173 and \175 are curly braces, so the
regex includes the (?{ }) syntax mentioned earlier.

You can use any expression as a regular expression with the binding
operator.  For example:

print "Yay!\n" if 4 =~ 2+2;


Ronald

Reply via email to