From owner-freebsd-questions@FreeBSD.ORG Fri Dec 7 06:25:00 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 87D24CCB for ; Fri, 7 Dec 2012 06:25:00 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: from oproxy9.bluehost.com (oproxy9.bluehost.com [69.89.24.6]) by mx1.freebsd.org (Postfix) with SMTP id 4BF948FC12 for ; Fri, 7 Dec 2012 06:24:54 +0000 (UTC) Received: (qmail 13822 invoked by uid 0); 7 Dec 2012 06:24:33 -0000 Received: from unknown (HELO box543.bluehost.com) (74.220.219.143) by oproxy9.bluehost.com with SMTP; 7 Dec 2012 06:24:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=apotheon.com; s=default; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date; bh=4oXJYqXrqpIEfSkm5wdaqhLD3CYqNYxL6gQByHUFnUo=; b=Gzgu9BwuffYqCTdesXhPquefrNq5SV6kG4s+fGcJ6JljPK+Gj7cP1Hg1oEF4Hy/EbzwRLcnYuawGYS5s6sPpjd7rvi588srGz1lpZRmzRuJhuAFTU+faBdGLzl+4ugLm; Received: from [24.8.180.234] (port=61689 helo=localhost) by box543.bluehost.com with esmtpsa (TLSv1:CAMELLIA128-SHA:128) (Exim 4.76) (envelope-from ) id 1TgrMP-00029K-92 for freebsd-questions@freebsd.org; Thu, 06 Dec 2012 23:24:33 -0700 Date: Thu, 6 Dec 2012 23:24:31 -0700 From: Chad Perrin To: freebsd-questions@freebsd.org Subject: Re: List all hard drives on system (with capacities)... How? Message-ID: <20121207062431.GA15665@hemlock.hydra> Mail-Followup-To: freebsd-questions@freebsd.org References: <50C1313C.4000201@gmx.com> <11844.1354839834@tristatelogic.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline In-Reply-To: <11844.1354839834@tristatelogic.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Identified-User: {2737:box543.bluehost.com:apotheon:apotheon.com} {sentby:smtp auth 24.8.180.234 authed with perrin@apotheon.com} X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2012 06:25:00 -0000 --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--