"Dharshana Eswaran" schreef: > $xyz =~ /\s*(\w+)\s+(\w+);/; > $b = $2; #variable name is stored here > ........ > ....... > > But the variables like pp_lac[COMMON_TYPE_MAX] and > pp_plmn_list[COMMON_TYPE_MAX] are not getting stored because of the > special character used inbetween the names.
Then don't use a bare \w. Try something like [][\w]. > $a = $1; # type is stored here Be careful with $a and $b. (See `perldoc -f sort`, and `perldoc perlvar`.) -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/