Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Perl style: Arguing against three-argument join()

by toolic (Chancellor)
on Jan 24, 2008 at 16:57 UTC ( #664080=note: print w/ replies, xml ) Need Help??


in reply to Perl style: Arguing against three-argument join()

Since you are soliciting opinions, I think your first version is an unusual usage of join. I think the most strightforward is your 3rd version (simple concatenation). And I do not think of join as being a three-argument function, as your title suggests. I think of is as two-agrument: an expression for the separator and a list.


Comment on Re: Perl style: Arguing against three-argument join()
Re^2: Perl style: Arguing against three-argument join()
by martin (Pilgrim) on Jan 24, 2008 at 17:38 UTC
    And I do not think of join as being a three-argument function, as your title suggests. I think of is as two-argument: an expression for the separator and a list.

    toolic, you are right, I probably should have said "three-argument usage of join" or "pseudo-separator, two-element list usage of join".

    On second thought, I might settle now for "abusing middle element of three-element list as join() separator" or something. If we take this much further we might be able to squeeze the whole discussion into a headline...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2014-08-30 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls