in reply to Reason for Find invalid switch error

Do you see output after END?

print "find /D/ARCHIVE/BIOS/PRTFILES -mtime +1 -exec rm -rf {} \\" __END__ find /D/ARCHIVE/BIOS/PRTFILES -mtime +1 -exec rm -rf {} \

Is that valid linux command?

I don't linux, but it doesn't look particularly valid to me

Figure out how to work the linux command from linux shell, and then wrap it up in perl script

Once you have a working command, for example, saved as myshellscript.sh you can use

 perl -MData::Dump -MIO::All -e " dd map { io($_)->all } @ARGV " myshellscript.sh  > myperlscript.pl

to quote it properly for to give to system