joyfedl has asked for the wisdom of the Perl Monks concerning the following question:
How can i have an output like this
"+book", "+dog", "+cat"from string values, i dont want to use array
my $string = (+book +dog +cat); print join(',', $string), "\n";
but my main target is to get what entered from html and join it like this
$string = $q->param("us1"); # this is what entered +book +dog +cat print join(',', $string), "\n";
output like this
"+book", "+dog", "+cat"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: joining string content
by Corion (Patriarch) on Jun 24, 2025 at 08:59 UTC | |
by joyfedl (Acolyte) on Jun 24, 2025 at 09:04 UTC | |
by Corion (Patriarch) on Jun 24, 2025 at 09:22 UTC | |
by joyfedl (Acolyte) on Jun 24, 2025 at 12:53 UTC | |
by Corion (Patriarch) on Jun 24, 2025 at 13:10 UTC | |
| |
by tybalt89 (Monsignor) on Jun 24, 2025 at 15:09 UTC | |
| |
Re: joining string content
by johngg (Canon) on Jun 24, 2025 at 09:55 UTC | |
Re: joining string content
by choroba (Cardinal) on Jun 24, 2025 at 11:08 UTC | |
by GrandFather (Saint) on Jun 24, 2025 at 21:26 UTC | |
by Anonymous Monk on Jun 24, 2025 at 13:13 UTC | |
Re: joining string content
by hippo (Archbishop) on Jun 24, 2025 at 09:40 UTC |