my $string = join ('-@-', sort@array); # My output # The string contains five-@-four-@-one-@-three-@-two
UPDATE: Here is a quote from perlop which I think is a handy bit of trivia:
"Punctuation" arrays such as @* are usually interpolated only if the name is enclosed in braces @{*}, but the arrays @_ , @+ , and @- are interpolated even without braces.
In reply to Re: Join function
by toolic
in thread Join function
by truthseeker66
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |