Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: P2P Golf: MoleSter

by dragonchild (Archbishop)
on Dec 17, 2004 at 15:57 UTC ( [id://415672]=note: print w/replies, xml ) Need Help??


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

In some semblance of order ...
  • The thing you're doing calling i in sub h is slightly confusing, ...

    I have no idea why any of the functions do what they do. I just make them do it with less characters.

  • The regex changes aren't a bugfix, and there is no separating slash in the first two values - they are separated by a space (which is why \S* is better than .*?). So, no slash in $`.
  • I hadn't gotten to the trinary yet - it probably does save a few characters. I'll do it and put out an update.
  • If you have open(F, ">$_[1]") and the filename is ">foo" ... what happens? The 3-arg open() prevents that.
  • The space after the comma is my eyes glazing over. I'll fix it in the update with the trinary.

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.

Replies are listed 'Best First'.
Re: P2P Golf: MoleSter
by jonadab (Parson) on Dec 23, 2004 at 22:58 UTC
    If you have open(F, ">$_[1]") and the filename is ">foo" ... what happens? The 3-arg open() prevents that.

    Gah. I keep forgetting that *nix allows shell metacharacters in filenames. (I cut my teeth on PC-DOS 3.3, which, whatever its other problems, does not permit that particular form of lossage.)


    "In adjectives, with the addition of inflectional endings, a changeable long vowel (Qamets or Tsere) in an open, propretonic syllable will reduce to Vocal Shewa. This type of change occurs when the open, pretonic syllable of the masculine singular adjective becomes propretonic with the addition of inflectional endings."  — Pratico & Van Pelt, BBHG, p68

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2024-04-18 12:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found