Hi All, I want enter a regex through command line and , my program should find the regex from the file that I should suppy through comman dline example C:\> perl myperl.pl regex 1.txt where regex is ths ----------> the pattern what I want to find in the 1.txt . my program $regexp=shift; print "$regexp\n" if /$regexp/ ; while (<>) { print " $. $regexp\n"; } in my 1.txt file only /swa/ is present in 2 lines but this program showing that swa is present 6 times my 1.txt file swaghsdgg is there in psj sjdfnsjf swpyo 12334 is hsdfhhsf bvfhshfjhbs swagfhhhj fjdfkkldfkkl dfkkdkf Thanks Prabhat
--------------------------------- Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call rates.