Shaunn Johnson wrote:
>
> --Howdy:
>
> --This is what I wound up using:
>
> [example]
>
> open (FILE, "+</temp/data.txt") || die "Can't open the sourcefile\n";
>
> while (<FILE>) {
> s/(\d+)$/0$1/;
> print;
> }
> close FILE
>
> [/example]
>
> --The interesting thing is that if I have a decimal
> in there, it puts the zero in front of the decimal,
> but not the whole number. I'm not sure why, but for
> now, I'm okay with it.
Try it this way:
s/(\S+)$/0$1/;
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]