What arguments do you frequently use for the Perl
interpreter and what do they mean?
Answers were Sorted based on User's Feedback
Answer / vipul dalwala
Mainly we are using -w argument for perl interpreter. That
means you are turning on warning messages.
| Is This Answer Correct ? | 14 Yes | 5 No |
Answer / sandeep kumar mall
Hi The various command line arguments are -e executes the
prog given as an argument-d start perl debugger on the file
name specified as an argument-c compile the file given as an
argument
| Is This Answer Correct ? | 11 Yes | 4 No |
Answer / jamal
-w Which show warning
-d Which debug
-c Which compile only not run
-e Which executes
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / sanjay garothaya
-w to show warning
-d to debug
-c to compile only not run
we can also use combination of these like
-wd
| Is This Answer Correct ? | 4 Yes | 0 No |
Is there any way to add two arrays together?
package MYCALC; use Exporter; our @EXPORT = (); our @ISA = qw(Exporter); our @EXPORT_OK = qw(addition multi); our %EXPORT_TAGS = (DEFAULT => [qw(&addition)],Both => [qw(&addition & +multi)]); sub addition { return $_[0] + $_[1]; } sub multi { return $_[0] * $_[1]; } 1; Program: use strict; use warnings; my @list = qw (2 2); use Module qw(:DEFAULT); print addition(@list),"\n"; Above coding is my module MYCALC and the program which using this module, I have not exported any function using @EXPORT, but I have used the DEFAULT in %EXPORT_TAGS with the function addition, when I call this function from the main it says the error as,
What is the use of -w, -t and strict in Perl?
How can you define “my” variables scope in Perl and how it is different from “local” variable scope?
What does next statement do in perl?
What package you use to create a windows services?
how to install a package in perl ????
How do you turn on the perl warnings?
What happens when you return a reference to a private variable?
Explain 'grep' function.
Explain the difference between "my" and "local" variable scope declarations. ?
What is the difference between chop & chomp functions in perl?
10 Answers Cap Gemini, DELL, Electronic Data, TCS,