Date: Thu, 6 Dec 2012 23:24:31 -0700 From: Chad Perrin <perrin@apotheon.com> To: freebsd-questions@freebsd.org Subject: Re: List all hard drives on system (with capacities)... How? Message-ID: <20121207062431.GA15665@hemlock.hydra> In-Reply-To: <11844.1354839834@tristatelogic.com> References: <50C1313C.4000201@gmx.com> <11844.1354839834@tristatelogic.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 06, 2012 at 04:23:54PM -0800, Ronald F. Guilmette wrote: >=20 > if ($bytes >=3D (1024 * 1024 * 1024 * 1024)) { You know about the exponentiation operator in Perl -- right? if ($bytes >=3D (1024 ** 4)) { I don't think typing 1024 four times with * between each pair is really a helpful form of verbosity. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --ZPt4rx8FFjLCG7dd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlDBi58ACgkQ9mn/Pj01uKVGRQCffOlkJBgjCzkpQp0ACJXYAcyY vdQAnRPdnFMhER6nxPDZ/vJkny5LP4gh =U3on -----END PGP SIGNATURE----- --ZPt4rx8FFjLCG7dd--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121207062431.GA15665>