FAQ
I'm running PERL under the MACOSX.

The line

$text=~s/george/tim/;

causes a global substituion of "george" with "tim"

How can I limit the substituion to the first instance only?

Thanks!

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 8 | next ›
Discussion Overview
groupbeginners @
categoriesperl
postedFeb 22, '12 at 2:37a
activeFeb 23, '12 at 1:07a
posts8
users5
websiteperl.org

People

Translate

site design / logo © 2022 Grokbase