Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2017-10-20 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (260 votes). Check out past polls.

    Notices?