On Oct 11, 9:30 am, [EMAIL PROTECTED] wrote: > Think one of the column ($arcval) value is APBNSTWAP23. I wanted to take > lines from > the csv file for those columns whose value is ST for its 5th and 6th > character. How can > I implement this in perl using reg ex. Help needed.
Why are you making the requirement for regular expressions? RegExps are neither the most intuitive nor the most efficient method of solving this problem. if (substr($arcval, 4, 2) eq 'ST') { ... } Paul Lalli -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/