Keep It Simple, Stupid | |
PerlMonks |
Re: error on file openby Anonymous Monk |
on Nov 25, 2013 at 22:41 UTC ( [id://1064325]=note: print w/replies, xml ) | Need Help?? |
I am very new to Perl, and don't know how to debug this error There are checklists for that , I use them all the time (don't be fooled by the titles), Basic debugging checklist , brian's Guide to Solving Any Perl Problem, CGI Help Guide , Troubleshooting Perl CGI scripts ... More generic advice :) On debugging, verify everything, talk to teddybear ... checklists and more , perltrap, perltrap, Common Perl Pitfalls / perltrap "permission denied" is about as clear as it can get: Q: can I have this cookie? A: No. its because readdir does NOT return the complete path and you forgot to chdir readdir is very low level, if you use Path::Tiny it can even do the die-ing for you, ex
Then you can write functions that take arguments like this
perlintro#Simple matching, quotemeta, eq for string comparison not == (because perlnumber), http://p3rl.orrg/POSIX#strftime chromatics free book Modern Perl a loose description of how experienced and effective Perl 5 programmers work....You can learn this too.
In Section
Seekers of Perl Wisdom
|
|