Documents: We're Using Facebook To Personalize Your Experience
Documents: We're Using Facebook To Personalize Your Experience
Documents: We're Using Facebook To Personalize Your Experience
http://www.scribd.com/doc/1184228/Perl-Interview#download
Documents
Books - Fiction Books - Non-fiction Health & Medicine Brochures/Catalogs Government Docs How-To Guides/Manuals Magazines/Newspapers Recipes/Menus School Work + all categories Featured Recent
People
Authors Students Researchers Publishers Government & Nonprofits Businesses Musicians Artists & Designers Teachers + all categories Most Followed Popular
Sujit Sali We're using Facebook to personalize your experience. Learn MoreDisable View Public Profile My Documents My Collections My Shelf Messages Notifications
1 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
UNIX bash Shell Scripting Training for LINUX Administrator Developer, DBA. 100% Job Oriented
www.FocusTraining.in/PUNE
What is perl? perl is a programming language based off of C, shell, Lisp and a few other things. It is mostly used for OS program, network operations and some website development (mostly cgi). Write a script for 'count the no.of digits using regular expressions in perl..
#!/usr/bin/perl -w use strict; my($test,$number) = ("",""); $test = "12344tyyyyy456"; $number = ($test =~ tr/[0-9]/[0-9]/); print "Number of digits in variable is :- $number "; exit;
What is the difference between chop & chomp functions in perl? chop is used remove last character,chomp function removes only line endings. What is Hash? Hash is an associative array where data is stored in "key"->"value" pairs.
Search
Search Eg : fruits is a hash having their namesHistory: and price %fruits = ("Apple", "60", "Banana", "20", "Peers", "40"); Searching...
When would you use Perl for a project?
1. When you are developing an application for a real time p. is of utmost importance system in which processing speed
2 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
How do you open a file for writing? open FILEHANDLE, ">$FILENAME" Name an instance where you used a CPAN module? we will get a no.of modules from CP AN , there so many module for database interface, database drivers. to do the mathematical operations ,text processing . each module is to handle a small tasks .
There are no.of instances for this For eg; we use DBI module for database connectivity, and we also use CGI Module for parsing the form input and printing the headers.
What is the difference between for & foreach, exec & system? Technically, there's no difference between for and foreach other than some style issues.
One is an alias of another. Y ou can do things like this foreach (my $i = 0; $i < 3; ++$i) { # normally this is foreach print $i, "n";} for my $i (0 .. 2) { # normally this is for print $i, "n";}
- exec runs the given process, switches to its name and never returns while system forks off the given process, waits for it to complete and then returns.
What purpose does each of the following serve: -w, strict, - T ? -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 Turn on strict mode to make Search Perl check for common mistakes.
Search History: Searching... Write a simple regular expression to match an IP address, e-mail address, city-stateResult 00 of 00 zipcode 00 results for result for
combination. /([0-255])(\.)$1\1$1\1$1/;
p.
3 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
Require: 1. The method is used for both libraries and modules. 2. The included objects are varified at the run time. 3. Need to give file Extension.
Explain the difference between my and local? The variables declared with "my" can live only within the block it was defined and there is no visibility to inherited functions which were called within that block, but one defined with "local" they can live within the block and can have visibility in the functions which were called within that block.
What is -> Symbol in perl
system calls *traditionally* returns 0 when successful and 1 when it fails. system ( cmd ) && die "Error - could run cmdn";
How to substitute a particular string in a file containing millions of records? perl -p -i.bak -e 's/search_str/replace_str/g' filename...
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?
bless $objref,'XYZ';
Search Search History: Searching... T akes a LIST of values and converts it into a string using Result 00 of 00 How to implement stack in Perl? 00 results for result for
Takes an array or list of values and packs it into a binary structure, returning the string containing the structure
p.
4 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
5 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
6 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
7 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
8 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
9 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
10 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
11 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
12 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
13 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
14 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
15 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
16 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
17 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
18 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
19 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
Leave a Comment
Submit Characters: 400 Search Search History: Searching... It's marvellous!! thnx ur most help.i am appreciting for ur effort and i need more interview question.plz do the Result 00 of 00 needful. 00 results for result for sakthiwin2004 reply05 / 09 / 2008 p.
20 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
Perl Interview
Perl Interview questions and answers Download or Print 13,162 Reads Info and Rating Category: Uncategorized. Rating: (6 Ratings) Upload Date: 01/21/2008 Copyright: Attribution Non-commercial Tags: Technology-Internet Flag document for inapproriate content
Uploaded by asmanu Download Embed Doc Copy Link Add To Collection Comments Readcast Share
Tweet 0 0
21 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
Search TIP Press Ctrl-FF to quickly search anywhere in the document. More from This User Related Documents
22 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
Upload a Document Search Documents Follow Us! scribd.com/scribd twitter.com/scribd facebook.com/scribd About Press Blog Partners Scribd 101 Web Stuff Support FAQ Developers / API Jobs Terms Copyright Privacy Copyright 2012 Scribd Inc.
23 of 24
5/17/2012 6:47 PM
Perl Interview
http://www.scribd.com/doc/1184228/Perl-Interview#download
Language: English
24 of 24
5/17/2012 6:47 PM