in reply to Pattern Match is not working

Well, that's a bit difficult as you didn't tell us what's going wrong :(

But there's one thing that leaps out at me, you need to use last to break out of a loop

try giving us an example of what's happening & what you expect

Replies are listed 'Best First'.
Re^2: Pattern Match is not working
by Lancy (Initiate) on Sep 07, 2011 at 11:25 UTC
    Hi My expectation is In leap some line ends with OR followed by a number same line in vldb +ends with Order followed by a number. similar to this i have more. <code> $vldbString =~ s/Order/OR/g;
    should apply in whole file wherever Order is there. what i am getting is only in the first occurrence.(first line) ignoring in next occurrence sample output

    1)system Places Order, map. 213, OR 1 FOUND IN VLDB ==

    2)option and Opticians (option from Section 25(1)) Order, map. 213A, OR 1 NOT FOUND IN VLDB ==

    My expectation is second one also should found in vldb. Thanks.