Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: CGI.pm, combining two strings

by JP Sama (Hermit)
on May 08, 2001 at 00:02 UTC ( #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? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2022-08-18 00:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?