Hi, I am doing grouping but seeing some weird behavior :-
the strings in a file are like :- AccessModes = (18,Mail,POP,IMAP,PWD,WebMail,WebSite,Relay,Mobile,FTP,MAPI,TLS,LDAP,WebCAL); .... ... . multiple lines I am seeing which lines have both POP and Webmail as below :- if( $line =~ /AccessModes\s*=\s*.*(WebMail)*.*(POP).*(WebMail)*.*/ ) { if(defined $2) { print "$2 $1"."$line"."\n"; } } However I get these below :- POPUse of uninitialized value in concatenation (.) or string at test.plline 283, <GEN85> line 2. POPUse of uninitialized value in concatenation (.) or string at test.plline 283, <GEN86> line 2. POPUse of uninitialized value in concatenation (.) or string at test.plline 283, <GEN87> line 2. Any clue why ? Regards.