[Linux-disciples] Opening the wrong file

Ken Shan linux-disciples@bostoncoop.net
Sat, 22 Nov 2003 14:49:55 -0500


--IS0zKkzwUGydFO0o
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

FWIW, you can test whether standard input is coming from a tty like
this:

    open STDIN, "<..." or die "...: $!" if -t STDIN;

--=20
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
"... On the upside, [Boston roads] do express a very Lovecraftian
non-Euclidian geometry if you're a fan of that sort of thing."
   -- Dan Sugalski, ll1-discuss, 11/5/2003

--IS0zKkzwUGydFO0o
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/v73jzjAc4f+uuBURAlCoAJ9C0U5J5ogvIuYMu/MumGhUUD3EwwCfbYAh
GatQHL9QHm5zeLErSDtlhT8=
=167m
-----END PGP SIGNATURE-----

--IS0zKkzwUGydFO0o--