Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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.

-b


Comment on Re^2: P2P Golf: MoleSter
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-09-17 13:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (79 votes), past polls