|
INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
PERL
DETAILS
Question: How to turn on Perl warnings? Why is that important?
Answer: Perl is very forgiving of strange and sometimes wrong code, which can mean hours spent searching for bugs and weird results. Turning on warnings helps uncover common mistakes and strange places and save a lot of debugging time in the long run. There are various ways of turning on Perl warnings:
* For Perl one-liner, use -w option on the command line. * On Unix or Windows, use the -w option in the shebang line (The first # line in the script). Note: Windows Perl interpreter may not require it. * For other systems, choose compiler warnings, or check compiler documentation.
|
|
|
Category |
Perl Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8342 users |
Added on |
9/11/2014 |
Views |
66068 |
Rate it! |
|
|
Question:
How to turn on Perl warnings? Why is that important?
Answer:
Perl is very forgiving of strange and sometimes wrong code, which can mean hours spent searching for bugs and weird results. Turning on warnings helps uncover common mistakes and strange places and save a lot of debugging time in the long run. There are various ways of turning on Perl warnings:
* For Perl one-liner, use -w option on the command line. * On Unix or Windows, use the -w option in the shebang line (The first # line in the script). Note: Windows Perl interpreter may not require it. * For other systems, choose compiler warnings, or check compiler documentation. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What happens when you return a reference to a private variable?
|
View Answer
|
|
What is Perl one-liner?
|
View Answer
|
|
How do I do fill_in_the_blank for each file in a directory?
|
View Answer
|
|
How to open and read data files with Perl
|
View Answer
|
|
Which of these is a difference between C++ and Perl?
|
View Answer
|
|
How do I set environment variables in Perl programs?
|
View Answer
|
|
Why we use Perl?
|
View Answer
|
|
Given a file, count the word occurrence (case insensitive)
|
View Answer
|
|
What is hash in perl?
|
View Answer
|
|
Explain the difference between "my" and "local" variable scope declarations. ?
|
- Perl Interview Questions & Answers">
View Answer
|
|
What is difference between "Use" and "require". In which case should "Use" be used and not "Require"?
|
View Answer
|
|
I have a variable named $objref which is defined in main package. I want to make it as a Object of Class XYZ. How could I do it?
|
View Answer
|
|
What's the significance of @ISA, @EXPORT @EXPORT_OK %EXPORT_TAGS list & hashes in a perl package? With example?
|
View Answer
|
|
How to Connect with SqlServer from perl and how to display database table info?
|
View Answer
|
|
what's the purpose of -w.strict,-T?
|
View Answer
|
|
Difference between for & foreach,exec & system?
|
View Answer
|
|
Where do you go for perl help?
|
View Answer
|
|
Name an instance you used in CPAN module?
|
View Answer
|
|
When do you not use Perl for a project?
|
View Answer
|
|
How do you connect to database in perl
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Perl Interview Questions & Answers - Exam Mode /
Learning Mode
|