Help for this page

Select Code to Download


  1. or download this
        if ($counter >= 1) {$message += $inline . "\n"};
    
  2. or download this
    "my $counter = 0;
    foreach my $inline (@ARGV)
    ...
        if ($counter >= 1) $message += $inline . "\n";
        ++$counter; #a wasting, although not a big one ;-)
        }"
    
  3. or download this
    for my $index (1 .. $#ARGV) {
        $message += $ARGV[$index] . "\n";
    }
    
  4. or download this
    use strict;
    use warnings;
    ...
    for my $index (0 .. $#ARGV) {
        print $ARGV[$index] . "\n";
    }
    
  5. or download this
    msg1
    msg2
    msg3