Ah, you made me go back and reread the manual on this. It does sound like it doesn't matter if there's no variable to interpolate. Although- when I recently did some timing, it seemed to make a very slight difference.
On Tue, 2 May 2006, Timothy Johnson wrote: > Why did you add the "o"? I believe you should only need that if you are > storing the regex in a scalar for reuse. Otherwise I think the regex > will still be compiled once for each iteration. > > -----Original Message----- > Is there a reason you don't write it > > my ($characterString, $numberString) = $string =~ /^([^\d]+)(.*)$/o; > > This will assure the values are not defined if the regex fails. I also > added "o". _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs