R
Richard
We're seeing different behaviour with our Perl scripts after upgrading
from AIX 5.3 to AIX 6.1. Here's a example that shows the issue:
#!/usr/bin/perl -w
use File::Find;
use File::Basename;
$file_to_check = " ";
if ( -e $file_to_check ) {
print "File found\n";
}
else {
print "No file found\n";
}
When I run this under AIX 5.3 I get
No file found
But under AIX 6.1 I get
File found
In our actual code the filename is passed to the script. Sometimes
it's blank. In AIX 6.1 it says the file is found even though it's a
blank filename.
This is the perl version string from both AIX 5.3 and 6.1
This is perl, v5.8.8 built for aix-thread-multi
While we could change our code to deal with this, it seems like it's
not working correctly under AIX 6.1.
Anyone else on AIX 6.1 that can verify the behaviour?
Thanks for any help.
Richard
from AIX 5.3 to AIX 6.1. Here's a example that shows the issue:
#!/usr/bin/perl -w
use File::Find;
use File::Basename;
$file_to_check = " ";
if ( -e $file_to_check ) {
print "File found\n";
}
else {
print "No file found\n";
}
When I run this under AIX 5.3 I get
No file found
But under AIX 6.1 I get
File found
In our actual code the filename is passed to the script. Sometimes
it's blank. In AIX 6.1 it says the file is found even though it's a
blank filename.
This is the perl version string from both AIX 5.3 and 6.1
This is perl, v5.8.8 built for aix-thread-multi
While we could change our code to deal with this, it seems like it's
not working correctly under AIX 6.1.
Anyone else on AIX 6.1 that can verify the behaviour?
Thanks for any help.
Richard