[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Omaha.pm] Passing arguments to "sprintf"...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I asked why this line didn't work:
> my $myline = sprintf (@LogString);
Andy Lester replied:
> Do it as:
> my $mask = shift @LogString;
> my $line = sprintf( $mask, @LogString );
Thanks, that works perfectly!
Dan
- - - - -
"I do not fear computer,
I fear the lack of them."
-- Isaac Asimov
GPG fingerprint:9EE8 ABAE 10D3 0B55 C536 E17A 3620 4DCA A533 19BF
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQFCCn58NiBNyqUzGb8RAry8AJwJrLlG6QW/MLpPinR6loHaeollLwCePmrG
YuHJoZ7zHQ0Y4i2D7yU5C2k=
=ZLsq
-----END PGP SIGNATURE-----