in reply to Padding with zeroes fails

You don't need =~ here. just use = instead. And consider using sprintf also.

Tatsuhiko Miyagawa

Replies are listed 'Best First'.
Re: Re: Padding with zeroes fails
by Kickstart (Pilgrim) on Dec 06, 2001 at 00:59 UTC
    Thanks, that was definitely the first error...the second came up when I attempted to assign other values to the read-only variables ($2 and $3)...both fixed, worked like a charm. Unfortunately this is just a one-of, so I didn't want to write a big multi-use script. Kickstart