in reply to Interview questions
1). Depends if the program is run with warnings on or not (-w option). If it is then:
2). The interviewer probably wanted PERL5LIB or PERLLIB, but actually any environment variable could be used to set the path provided you
Did you get the job?
More likely the interviewer wanted you to say what the difference between my, our, and local is."our" variable $test masks earlier declaration in same scope
2). The interviewer probably wanted PERL5LIB or PERLLIB, but actually any environment variable could be used to set the path provided you
use lib $ENV{varname};
Did you get the job?
In Section
Seekers of Perl Wisdom