[Dxspider-support] basic Perl programming question
Brendan Minish
ei6iz at newsguy.com
Mon Apr 28 18:19:04 BST 2003
Hi Everyone,
I have been experimenting with adding my own user command to do
SH/FDX
I have created a new command called FDX which is a copy of the existing DX
command with a new sub near the begining to define the output format to be used
sub formatf
{
my $t = ztime($_[2]);
my $d = cldate($_[2]);
return sprintf "DX de %-7.7s%11.1f %-12.12s %-s $t", "$_[4]:", $_[0],
$_[1], $_[3] ;
}
I have never done any perl before so please forgive this basic question,
How do I position $t (the time variable ) a fixed no of characters from the
beginning?
73
Brendan
More information about the Dxspider-support
mailing list