- or download this
my log_msg_1 {
my $FH = shift;
...
my ($FH, $msg) = @_;
print $FH $msg;
}
- or download this
my sub log_msg ($FH, $msg, @args) {
print $FH $msg, @args;
}
- or download this
sub log_msg {
my ($FH, $msg, @args) = @_;
print $FH $msg, @args;
}
- or download this
#!/usr/bin/perl
use strict;
...
my (@args) = @_;
print join(" ",@args), "\n";
}