Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: P2P Golf: MoleSter

by bgreenlee (Friar)
on Dec 16, 2004 at 18:32 UTC ( #415423=note: print w/replies, xml ) Need Help??

in reply to Re: P2P Golf: MoleSter
in thread P2P Golf: MoleSter

You should be able to get rid of at least 4 more characters by getting rid of the " F" after the two "close F"'s. Without an argument, close will close the currently selected filehandle.

The above is actually 7 lines if you get every line as close to 80 chars as possible.


Replies are listed 'Best First'.
Re^3: P2P Golf: MoleSter
by dragonchild (Archbishop) on Dec 16, 2004 at 18:34 UTC
    The above is actually 7 lines if you get every line as close to 80 chars as possible.

    True, but you gain characters by doing that. The reason for where the newlines are is to cut spaces from the final tally. You'll notice every newline is after a select, close, sub, or for. That's not coincedence. :-)

    Thanks for the tip on close().

    Being right, does not endow the right to be rude; politeness costs nothing.
    Being unknowing, is not the same as being stupid.
    Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
    Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://415423]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2018-06-18 19:13 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (110 votes). Check out past polls.