in reply to how do i do this?

I am not sure what you meant by "being returned" Does that fit the bill?
$,=' '; print sort @ARGV;
@ARGV and $, are documented in perlvar.
And, please, use meaningful subjects. Here something like "how to sort command line parameters?" would be nice.

-- stefp

Replies are listed 'Best First'.
Re: Re: how do i do this?
by inkedmn (Novice) on Sep 29, 2001 at 02:51 UTC
    for example, i type this at the command line: perl script1.pl apple radio bubble ham zebra and i want the output to be: apple bubble ham radio zebra i apologize for not explaining my question more clearly... thanks for your replies.
      shove the code below in the file script1.pl and it should do what you want.
      #/usr/bin/perl use strict; # a good habit to take use warnings; # except in production $,=' '; print sort @ARGV;

      -- stefp