What operator is used to check whether the file is empty or not
-e'
-s'
-z'
-x'
/d[^oO]g/ matches?
dog
dOg
doOg
dig
$input = “abdce”; $output = $input =~ tr/abc/123; print $input; print $output
12d3e 3
12d3e 5
12d3e 1
Error
12d3e null string
The purpose of ?: in this is /(?: [a-z]+/ is?
To enclose a subpattern in parenthesis without storing it in memory.
To define a boundary condition
To enclose a pattern within pattern
None of the above
Which of the following is not a predefined subroutine?
BEGIN
END
DEFAULT
AUTOLOAD
NONE OF THE ABOVE
Which is the best way to delete an element in an associative array?
Delete
Push
Pop
Shift
Unshift
$string = “GoodWorld”; $string =~ s/o*/i/; The value of $string is?
iGoodWorld
GidWirld
GidWorld
Gioworld
GoodWorld
$data = “Welcome Perl” =~ /(.*)/; print $data;
0
1
Welcome
Perl
Welcome Perl
my %hash = ( 'hi' => {'hello' => 'all'}, 'bye' => {'later' => 'gone'} ); print $hash{'hi'};
hello
hello => all
HASH(0x??????) where ?????? is a group of hex digits.
error
my $val = ‘x’; print ref($val);
scalar
any decimal value
empty value
x