On Thu, Dec 06, 2012 at 04:23:54PM -0800, Ronald F. Guilmette wrote:
> 
>   if ($bytes >= (1024 * 1024 * 1024 * 1024)) {

You know about the exponentiation operator in Perl -- right?

    if ($bytes >= (1024 ** 4)) {

I don't think typing 1024 four times with * between each pair is really a
helpful form of verbosity.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]

Attachment: signature.asc
Description: Digital signature

Reply via email to