problem with $1

2005-06-02 Thread Nischi
Hello The matched string which is stored in $1 is getting corrupted. the regular expression i have is "\xa0\xa0\xa0\x{100}" =~ /(\xa0+)/; when i say ... if($1 eq "\xa0\xa0\xa0") this is true. It is working fine in Linux but not working (ASCII platform) but it is not working in EBCIDIC pl

regarding problem with $1 in regexec

2005-06-06 Thread Nischi
Hello i am having something like this ... $b = "\xa0\xa0\xa0\x{100}" =~ /(\xa0+)/; $b =~ \(\xa0+)\; print "Valid" if ($1 eq "\xa0\xa0\xa0"; print " $b $1"; Here according to the regular expression the $1 should contain the matching string. so according $1 should have \xa0\xa0\xa0. This is happ