From: "Zachary P. Landau" Date: 2004-04-22T07:03:36+09:00 Subject: Re: Is Ruby is better than PHP ... --Sw7tCqrGA+HQ0/zt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > ZPL> PHP Ruby > ZPL> ---- ---- > ZPL> base64_decode require 'base64' > ZPL> Base64::decode64 >=20 > ZPL> base64_encode require 'base64' > ZPL> Base64::encode64 >=20 > Why not >=20 > string.pack("m"); string.unpack("m") ?? >=20 > If find this much easier That's all Base64::encode/decode64 does, but when glancing over code, Base64::encode64(str) tells me more than str.pack("m"). I was never very good with remembering pack notation, and I'd like to think other people are in the same boat as me. =20 -- Zachary P. Landau GPG: gpg --recv-key 0x24E5AD99 | http://kapheine.hypa.net/kapheine.asc --Sw7tCqrGA+HQ0/zt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAhu6zCwWyMCTlrZkRAu68AJwJDwY0hLwhlvcS+5cvytkYp/3ZqACdEKJR /EnXlaYo5ugbVWzWaQAEWEk= =9DSc -----END PGP SIGNATURE----- --Sw7tCqrGA+HQ0/zt--