AndrewMcHorney wrote:
Hello

Hello,

I have a line of code that appears to not be returning what I am looking for. I am attemting to add a number which has commas in it. It represents the number of bytes of a file obtained for the dir command. At the end of the run the number of bytes does not come close to what I expect. I am doing a $TotalBytes = $TotalBytes + $FileBytes where $FileBytes has commas in it. The variable $TotalBytes does not.

Remove the commas from $FileBytes first before adding it to $TotalBytes.


John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to