you are not signed in | sign in or register
Perl Interview Questions And Answers
Feed & Web Facts
Feed Item Count
21 Oct 16 09:59
Last Reading
RSS/XML Version
Feed Language
Feed Encoding
LNG_QR_FAILED: connection to failed (errno=111, msg=Connection refused).
Related Feeds
You could also like to visit these feeds:
    Weekly People
    Week 42
    Perl Interview Questions And Answers
    Traffic Overview
    Newest Posts in Feed
    Perl Interview Questions Part 10
    Perl Interview Questions Part 9
    Q:How to concatenate strings with Perl? A:Method #1 – using Perl’s dot operator:$name = ‘checkbook’;$filename = “/tmp/” . $name . “.tmp”;Method #2 – using Perl’s join function$name = “checkbook”;$filename = join “”, “/tmp/”, $name, “.tmp”;Method #3 – usual way of concatenating strings$filename = “/tmp/${name}.tmp”;Q:Perl uses single or double quotes to surround a zero or more characters. Are the ...
    Perl Interview Questions Part 8
    Q:How do I read command-line arguments with Perl? A:With Perl, command-line arguments are stored in the array named @ARGV.$ARGV[0] contains the first argument, $ARGV[1] contains the second argument, etc.$#ARGV is the subscript of the last element of the @ARGV array, so the number of arguments on the command line is $#ARGV + 1.Here’s a simple program:#!/usr/bin/perl$numArgs = $#ARGV + 1;print “tha...