Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: strings with multiple parameters

by davido (Cardinal)
on Nov 07, 2011 at 16:29 UTC ( [id://936534]=note: print w/replies, xml ) Need Help??


in reply to strings with multiple parameters

$strings = join '', @ARGV

See perldoc -f join.

Update:

On second read of your original question I noticed that your code snippet may not have been illustrating what you actually intended to do. Maybe you wanted to retain the strings as separate scalar units:

( $this, $that, $the, $other ) = @ARGV;

But if that's what you need, what's wrong with keeping them in the original array, or assigning them to a new array?


Dave

Log In?
Username:
Password:

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

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

    No recent polls found