Hello all,
I've an existing shell-script, but I would like to rewrite it in Perl. I'm new to Perl and now I stumble on something. In my shell-script I have the following line:
if [ a`/usr/well561/bin/newlogfile 1` = aY ]; then
echo "true"
else
echo "false"
fi
when I do this in perl like this:
if (`/usr/well561/bin/well.newlogfile 1` eq Y) {
print "true";
}
else {
print "false";
}
I get an error about using Bareword "Y" in strict mode, when I take the strict mode out I don't get the right result.
How should I rewrite the above in Perl. I've tried several things but they don't work, mostly an error on Bareword "Y".
Advise please
Thanx Kluther