Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What purpose does each of the following serve: -w, strict, -
T ?

Answers were Sorted based on User's Feedback



What purpose does each of the following serve: -w, strict, - T ? ..

Answer / savitha sridhar

-w to enable warnings mode
-T to enable Taint mode (TAINT mode puts a Perl script
into "PARANOID" mode and treats ALL user supplied input as
tainted and bad unless the programmer explicitly "OKs" the
data). Usually used when you are using a perl script that
you have downloaded and running but do not want any
security problems.

strict is a pragma in perl used to incorporate strict
programming practices.
Eg:

you could have written a small prog like this:

$x=100;
print $x;

with strict pragma "ON" you will be explicitly required to
specify the scope like,

use strict;
my $x=100; ##use of my to specify scope
print $x;

You can also switch off a pragma by using "no" like below
to switch off the pragma effect:

use strict;
my $x=100; ##use of my to specify scope
print $x;
no strict;
$y=200; ##no need to be specific
print $y;

Is This Answer Correct ?    2 Yes 0 No

What purpose does each of the following serve: -w, strict, - T ? ..

Answer / kalai

-w enables the warnings mode in perl

-T is enables the Taint mode it performs some checks how
your program is using the data passed to it

-w, -T,-d, -D are called the command line switches

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.

0 Answers  


You want to download the contents of a url with perl. How would you do that?

0 Answers  


what is the function that is used to identify how many characters are there in a string?

0 Answers  


Explain goto label, goto name, and goto expr?

0 Answers  


When would you not use Perl for a project?

1 Answers   IBM,


What are the two ways to get private values inside a subroutine?

0 Answers  


Why aren't Perl's patterns regular expressions?

0 Answers  


List the prefix dereferencer in Perl.

0 Answers  


Why do you program in Perl?

4 Answers  


How will you create a file in perl?

0 Answers  


sort a word "system" in perl/shell without using built in functions output should be emssty

2 Answers   emc2,


What does last statement do in perl?

0 Answers  


Categories