-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Jul 11, 2003 at 07:31:02AM +0900, Xavier Noria wrote:
> On Friday 11 July 2003 00:22, Daniel Carrera wrote:
> 
> >   def twice
> >       yield
> >       yield
> >   end
> >   twice { puts "Ruby rocks!" }
> 
> sub twice(&) {
>     my $sub = shift;
>     &$sub;
>     &$sub;
> }
> twice { print "Ruby rocks!\n" }


Actually, that might be good for a side-by-side comparison.
The Ruby version is way cleaner.

- -- 
Daniel Carrera         | OpenPGP fingerprint:
Graduate TA, Math Dept | 6643 8C8B 3522 66CB D16C D779 2FDD 7DAC 9AF7 7A88
UMD  (301) 405-5137    | http://www.math.umd.edu/~dcarrera/pgp.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (SunOS)

iD8DBQE/Deo6nxE8DWHf+OcRAngIAKCKCs3Fs2WRuxOY6llrpsTJ3NQYUACglbmp
4O6plrbbaC/cIFLTChWA8s4=
=ikgx
-----END PGP SIGNATURE-----