From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461) Description of problem: I tried to match the pattern and the then split up found subpattern by 'split' function with pattern as a delimiter. Function 'split' affects value of variable '$1'. This doesn't take the place on Red Hat 7.3 and Windows. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. execute q.pl Actual Results: MakefileData.result.dat contains '0085\000uilder.h', where \000 after 0085 is zero byte Expected Results: MakefileData.result.dat should contain 'artsbuilder.h' Additional info: if copy value of $1 to another variable after doing pattern match and use that varible in 'split' function instead of $1 then all will be correct. ## .... if ($MakefileData =~ m/\nlibartsbuilder_la_COMPILE_FIRST\s*=\s*(.*)\n/) { my @compilefirst = split(/[\s\034]+/, $1); # @compilefirst should contain 'artsbuilder.h' print "compilefirst=@compilefirst\n"; # but contain 0085\000uilder.h, where \000 after 0085 is zero byte ... ###
Created attachment 85667 [details] test script
Created attachment 85668 [details] test data
Can someone test the script & data provided in this report and verify if this is still an issue?
perl-5.8.5-12.FC3 and perl-5.8.6-15 produce the expected results.