From: Aredridel Date: 2003-09-13T00:17:57+09:00 Subject: Functions in Kernel [Was Re: Global object instance?] --=-9q3FSpKbQpTcKffpCQpU Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > How many people use: > chomp() vs String#chomp() > chop() vs String#chop() > gsub() vs String#gsub() I don't think I ever use thse. > open() vs IO#popen()/File#open() > gets(), readline(), readlines() vs something using File > scan() vs String#scan() These only when doing one-off sysadmin scripts -- but that's very good for quick and dirty, so I think they should stay. > select() vs IO.select() Always use this variant from kernel. > split() vs String#split() > sub() vs String#sub() Never > test() vs Filetest stuff In quick scripts. Honestly, I like most of them, but they're always for quick and dirty stuff except select, which for some reason seems low-level to me. Ari --=-9q3FSpKbQpTcKffpCQpU Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQA/YeNztP09exA3hooRArcHAKDBLRzoqOeatkBaF27X413uvuERgQCfamXl CMl0Jl380q0cIh4ZIn/dYe4= =9c+B -----END PGP SIGNATURE----- --=-9q3FSpKbQpTcKffpCQpU--