Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: TIMTOWTDI -- so long as it's not my way

by lemming (Priest)
on Jan 16, 2001 at 01:58 UTC ( #52074=note: print w/replies, xml ) Need Help??

in reply to TIMTOWTDI -- so long as it's not my way

My most recent was print printf("%03d\n", $number); and it took way to long to figure out where the extra one was coming from.

And another one from a long program that wrote a bunch of files, but got rid of any empty ones.
# The code as it was executed open filehandles print "to file"; # This was anything from # a few to huge # of items #cleanup dir go through directory and unlink any empty files close filehandles
For some reason if the program didn't have much to say I'd wind up with fewer files than expected.

Replies are listed 'Best First'.
Re: Re: TIMTOWTDI -- so long as it's not my way
by extremely (Priest) on Jan 16, 2001 at 02:52 UTC
    Hmm I just did sprintf "%02d%02d", @nums, $/; today. After a while of trying to figure out why it didn't print anything I said, Ahh! and took the "s" off the front.

    THEN began the puzzling over why the newline wasn't printing. =)

    $you = new YOU;
    honk() if $you->love(perl)

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://52074]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2023-04-02 02:50 GMT
Find Nodes?
    Voting Booth?

    No recent polls found