> Hello All, > > This is my first posting to this Peg, please excuse any protocol ... > > I am currently working on a Perl Script and trying to do a pattern match > within an If, like: > > if ($Line =~ /field vendno/i)....searching for string "field vendno" . > > but instead of hard-coding the pattern match I would like to read it in > from an argument passed when running from the command line, like @ARGV[2]. > > I have tried: > > if ($Line =~ /@ARGV[2]/i) > > if ($Line =~ /$ARGV[2]/i) > > I have also tried assigning the value of the ARGV to another variable > like: > > $ArgMatch = @ARGV[2]; > > if ($Line =~ /$ArgMatch/) > > Any help would be greatly appreciated!!! > > TIA, > Mike > > Michael Pastore > Business Systems Analyst,CPIM > Velocity Enhancements Group > Frontstep > Ph (614)523-7186 > Fax (614)410-2649 > Email [EMAIL PROTECTED] > >
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]