df -h | grep /db2/$DB2DBDFT/sapdata was ran at the command line on the server and is also the same command that is used in the script
$DB2DBDFT is an environment variable which I tell perl to use at the very top of the script.
I stated that the line numbers do not make sense. When I comment out this little section of code the error goes away and this section of code starts on line 52 not 82 as the error implies so again Perl is not accurate or I don't understand where it is getting this line number from.
No printf on the lines of code I displayed, you are correct in that none of the lines of code I displayed had a printf command, however that is the error that I am given. The reason I think this is happening is because the out put has a % sign in it and Perl wants to do printf on % signs instead of printing them.
I tried use strict and it wants me to declare all my variables, not a very practical option
In reply to Re^2: print question
by bp4a
in thread print question
by bp4a
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |