On Tue, 30 Jan 2001, Nathan Wiger wrote:

> Jarkko Hietaniemi wrote:
> > 
> > As I said the problem isn't the p52p6 doing that kind of transformation.
> > The problem is someone familiar with perl5 writing code in perl6:
> > 
> >         if (my $fh = open(">/tmp/$$".time())) {
> > 
> > and later something crashing and burning because some other place expects
> > to find a filename of the form /^\d+\d+$/, or someone printing into log files
> > like this


        Well, FWIW, here are two suggestions on how to handle this, the
grouchy way and the helpful way:

        1) (grouchy) If you're writing Perl6, you should be writing Perl6,
and you should know how time() behaves and handle it properly.

        2) (helpful) time() returns an int-based time value (as now), but
time(<something>) returns a subsecond-value...if we wanted to get really
fancy, then the value of <something> as an int could be the number of
places of accuracy that would be returned.

                                Dave




Reply via email to