From: Wesley J Landaker Date: 2003-12-05T07:48:38+09:00 Subject: Re: Generalized break? --Boundary-02=_An7z/JO8rOLNyoX Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline On Thursday 04 December 2003 3:40 pm, Wesley J Landaker wrote: > Well, maybe not proper, but here is *a* way to do it. ;) > > #!/usr/bin/ruby > > puts "File loaded." > > if $0 =3D=3D __FILE__ then puts <<-EOF ; end > > # look, no indent, and we're not nested in an if! =3D) > puts "File called directly." > > EOF Err, that just prints things out, nevermind. (I wasn't serious anyway ;) =2D-=20 Wesley J. Landaker - wjl@icecavern.net OpenPGP FP: 4135 2A3B 4726 ACC5 9094 0097 F0A9 8A4C 4CD6 E3D2 --Boundary-02=_An7z/JO8rOLNyoX Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQA/z7nA8KmKTEzW49IRAigMAJ4sU84Oo8VMIQC0l9SR8IQ1FgARlQCeJqn9 RF5EgP5n7X4yaAnkCYDoLtA= =dP18 -----END PGP SIGNATURE----- --Boundary-02=_An7z/JO8rOLNyoX--