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

Re^2: Schwartzian Transfrom using a subroutine

by jwkrahn (Monsignor)
on Jan 09, 2013 at 13:33 UTC ( #1012484=note: print w/ replies, xml ) Need Help??


in reply to Re: Schwartzian Transfrom using a subroutine
in thread Schwartzian Transfrom using a subroutine

(As an aside; are you aware that for my $word (@output){say $word;} is more easily written as say for @output?)

They are not the same:

$ perl -E'my @x = qw/one two three/; for my $x ( @x ) { say $x }' one two three $ perl -E'my @x = qw/one two three/; say @x' onetwothree


Comment on Re^2: Schwartzian Transfrom using a subroutine
Select or Download Code
Re^3: Schwartzian Transfrom using a subroutine
by BrowserUk (Pope) on Jan 09, 2013 at 13:45 UTC
    perl -E'my @x = qw/one two three/; say @x'

    You missed something...

    is more easily written as say for @output?) #.............................^^^

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2014-07-24 00:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (155 votes), past polls