In a message dated 3/13/2006 4:01:48 P.M. Eastern Standard Time, [EMAIL PROTECTED] writes:
 
> > > $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.
 
but it doesn't work.   try either of  

perl -e "$_ = 'abcbebf'; s/b//g; print"
perl -e "my $s = 'abcbebf'; $s =~ s/b//g; print $s"
versus  
 
perl -e "$_ = 'abcbebf'; /b//g; print"
perl -e "my $s = 'abcbebf'; $s =~ /b//g; print $s"
 
 
bill walters  
 
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to