Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: CGI.pm, combining two strings

by JP Sama (Hermit)
on May 08, 2001 at 00:02 UTC ( [id://78629]=note: print w/replies, xml ) Need Help??


in reply to CGI.pm, combining two strings

Or you could use the following script:

#!/usr/bin/perl use CGI; use CGI::Carp 'fatalsToBrowser'; CGI::ReadParse(*in); $foo = $in{'name_of_first_field'}; $bar = $in{'name_of_second_field'}; $withspace = "${foo}${bar}"; $withoutspace = "$foo $bar";
And do what they told you already:
print "$withspace\n"; print "$withoutspace\n";

Good Luck!

#!/jpsama/bin/perl -w
$tks = `mount`;
$jpsama = $! if $!;
print $jpsama;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-25 07:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found