Re: Padding a length of string

Bennett Todd <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
You mean, like:

perl -le 'print $ARGV[1] . ($ARGV[2] x ($ARGV[0] - length($ARGV[1])))'

?

-Bennett
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQFAhCTCHZWg9mCTffwRAlu+AKDNVsnXW2fIQ3gfQ1VLM4qnV9ZLqQCgxQXa
COSNH6RSKgxfzXjRHlv7meM=
=nFot
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.