[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Drunk driving



On Sat, Jun 19, 1999 at 03:55:00PM -0500, Tushar Samant wrote:
> I saw code like this recently, and I hope the perp isn't reading this:
> 
>     $string = $x;
>     open(TMPOUT, ">$tmpout");
>     write TMPOUT;
>     open(TMPOUT, "$tmpout");
>     read(TMPOUT, $x, 1000);
> 
>     $string = $y;
>     open(TMPOUT, ">$tmpout");
>     write TMPOUT;
>     open(TMPOUT, "$tmpout");
>     read(TMPOUT, $y, 1000);
> 
> Took me a while to guess what was being attempted...

Writing a format to a variable?  How to do it better is
documented... somehwere... in the documentation... for that... umm,
thing.  (I don't use formats)

-- 

Michael G Schwern                                           schwern@pobox.com
                    http://www.pobox.com/~schwern
     /(?:(?:(1)[.-]?)?\(?(\d{3})\)?[.-]?)?(\d{3})[.-]?(\d{4})(x\d+)?/i








==== Want to unsubscribe from this list? (Don't you love us anymore?)
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org