On Sun, Apr 6, 2008 at 11:17 AM, John W. Krahn <[EMAIL PROTECTED]> wrote: > > Your problem is that the line "123\n" does not match the pattern /^\s*$/. > Try it using two substitutions like this: > > s/^\s+//; > > s/\s+$//;
or use one, s/^\s+|\s+$//g; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/