in reply to Re: how do i do this?
in thread how do i do this?

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.

Replies are listed 'Best First'.
Re: Re: Re: how do i do this?
by stefp (Vicar) on Sep 29, 2001 at 02:58 UTC
    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