in reply to Matching exact string

try this
if($line =~ m#/volumes/VGNEW1/lv[^a][^b][^c]#) {
you have said lv... and told that you don't want to match lvabc, then try the above, but i think it will match anything other than a b and c at the appropriate positions, give more clarity on your possible kinds of inputs and expected match.
read perlretut

Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.

Replies are listed 'Best First'.
Re^2: Matching exact string
by himanshu.padmanabhi (Acolyte) on Mar 24, 2009 at 13:30 UTC
    Thank you all really.Problem is solved.