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

Re: CGI.pm, combining two strings

by Sifmole (Chaplain)
on May 07, 2001 at 23:01 UTC ( [id://78607]=note: print w/replies, xml ) Need Help??


in reply to CGI.pm, combining two strings

I think that maybe you are looking for the other side of the equation -- getting back the information from the form.

# Get rid of the ' ', if you do not want the space. print $query->param('foo), ' ', $query->param('bar');
Update
If you are simply printing the result you do not need the '.' concatenation operator; A print with the comma will do just as well and ...

according to some quick and dirty Benchmarking, which is always suspicious, is just a teensy bit quicker. Apparently the difference in speed grows as the length of the strings grows as well as the number of strings being utilized grows. As well at some point the join routine becomes more efficient than a string of '.' operators.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://78607]
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-24 06:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found