Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: print and say

by LanX (Bishop)
on Sep 12, 2017 at 09:12 UTC ( #1199174=note: print w/replies, xml ) Need Help??


in reply to print and say

1) store?

 push @array, $_ for myfunct($str1, $str2);  

the postfix-for automatically uses $_ as loop variable.

But this looks weird, is your function returning a list?

2) say vs print

say starts a new line (inserts a "\n" at the end)

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1199174]
help
Chatterbox?
and a moth chases the moon...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2018-01-19 00:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (215 votes). Check out past polls.

    Notices?