in reply to Padding strings for a flat file

Assuming you mean values as in only numerical values, sprintf is your friend.

sprintf("%10d", 1234) will give you "......1234" (those '.' are spaces, really, but PM formatting weirds it out).

sprintf("%010d", 1234) will give you "0000001234"

If you want x's instead, then try this (assuming you only have numerics and no strings)

$text = sprintf("%10d", $number); $text =~ s/\s/x/g;
If this doesn't work, there are format statements in perl, but my experience tells me there are rather cumbersome to use.
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain