[EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote on 03/13/2006 03:54:10 PM: > > [EMAIL PROTECTED] writes: > > > #! /usr/bin/perl > > > $input=" example information in a string "; > > > $input =~ /\s+/ /g; > > > > should be s/\s+/ /g; note initial s in s/// substitution. > > i used that religiously like i used the preceding m on m// > religiously until a few months back. now i only use it if it's not a > personal thing and someone else will need to upkeep. they aren't > needed but are great for upkeep.
Hmm... Doesn't work for me without the 's'. With ActiveState Perl v5.8.7, I get a divide by zero error if I leave off the 's'. What version are you running? -- Bowie _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
