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

Re: [FWP] Puzzle - Temp file creation



On Tue, Jul 13, 1999 at 03:20:34PM -0700, Peter Scott wrote:
> At 11:58 PM 7/12/99 +0100, Adam Sampson wrote:
> >  Second, since when has "aaaa"++ been "aaab"?
> >         $a = "aaaa"; print $a; print $a++;
> >         aaaaaaaa
> Ponder the meaning of the "post" part of "post-increment".

OK! OK! I admit it! I made a mistake!

... it just wasn't that. I hadn't tried the code; I meant ++$a. However, I'd
assumed that "aaaa" didn't fit the regexp described in perlop, which it
does (it's just the text in the original code that doesn't).

However, the point I was trying to make was that you shouldn't do this
anyway because there must be a module for it (lr@hpl.hp.com suggested
POSIX::mktemp). Reinventing the wheel's not good (no matter how many ways
there may be to do something).

-- 

Adam Sampson
azz@gnu.org

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe