>#!perl -w > >foreach $line (<>) { > this is very inneficient as it oblige perl to glob the whole file in a list context you could go the same way with far lesse memory demand with a normal while(<>) { $line = $_; .. } my 2 cents ;-) also you should try to add an /o to your reg expr so perl would compile them once instead of each line in your file. --------------------------------------------------------------------- Vincent Nonnenmacher DPI SA 116 Av de la Republique 38320 BRESSON tel : (33) 476 33 25 06 mailto:dpi@pobox.oleane.com fax : (33) 476 33 25 01 http://worldserver.oleane.com/DPI ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch