open(IN, "@ my $var = $1; $var @e; print "$_\n" for sort { $a cmp $b } split /,/; } } close(IN); close(OUT); #### 1 some other text 2 3 5 7 8