[Kc] billboard on I-35 uses perl

Aaron Leonard aachleon at gmail.com
Wed Oct 21 09:22:48 PDT 2009


LOL

He was joking...  The $_ in the message isn't supposed to be interpolated.
I think you all need to take a break from programming this weekend.  :)


On Wed, Oct 21, 2009 at 10:58 AM, Jason Rush
<jason+kcpm at jlrush.com<jason%2Bkcpm at jlrush.com>
> wrote:

> >> Have you seen the billboard on I-35 south as you pass Mission Road?
> >> It uses the default variable:
> >>
> >> "I'll quit when cigarettes are $_ a pack."
> >
> > You must have added those double-quotes... The actual code must be
> > mistakenly single-quoted, so $_ isn't interpolated. You'd think they
> would
> > have caught that while escaping the ' in I'll.    :)
> >
> > Can someone take a picture for us out-of-towners?
> >
> > j
> > Omaha.pm
> >
> >
>
> The developer could have used the q quoting which would allow for
> double and single quotes inside the message.
>
> print q( "I'll quit when cigarettes are $_ a pack." );
>
> I wish I had checked my email earlier, I would have brought my camera.
>  I wonder how long it will take to fix it if it hasn't been fixed
> already.
> _______________________________________________
> kc mailing list
> kc at pm.org
> http://mail.pm.org/mailman/listinfo/kc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/kc/attachments/20091021/1867c2d4/attachment.html>


More information about the kc mailing list