Types of attribute and then describe it.
Answer / mahesh
use Attribute::Types;
my $count : INTEGER; # Can only store an integer
my $date : INTEGER(1..31); # Can only store an int
between 1..31
my $value : NUMBER; # Can only store a number
my $score : NUMBER(0.1..9.9); # Can only store a num
between 0.1..9.9
my @rain : NUMBER; # Elements can only
store numbers
my %vars : SCALAR; # Entries can only
store scalar refs
my %handler : CODE; # Entries can only
store sub refs
my $arr : ARRAY; # Can only store array ref
my @hashes : HASH; # Elements can only
store hash refs
my $glob : GLOB; # Can only store a
typeglob ref
my $pattern : REGEX; # Can only store a qr'd
regex
my $ref2 : REF; # Can only store a
meta-reference
my $obj : Type(My::Class); # Can only store
objects of (or
# derived from) the
specified class
my $x : Type(/good|bad|ugly/); # Can only store
strings matching
# the specified regex
sub odd { no warnings; $_[0]%2 }
my $guarded : Type(&odd); # Can only store values
for which
# odd($value) returns true
| Is This Answer Correct ? | 0 Yes | 0 No |
Powers of president , and chief justice of india magasayay award: related to which country.
A man said to woman " your only brother's son is my wife'sbrother". How is the woman related to the man's wife..
Find the ratio of the areas of the regular hexagons inscribed in and circumscribed around a circle of radius 10cm.
a cylinder ingot 6cms in diameter and 6 cms in height is and spheres all of the samesize are made from the material obtained.what is the diameter of each sphere?
A man walks around a rectangle. The time taken by him in travelling the length is twice as taken in travelling the breadth of the rectangle. If the perimeter of the rectangle is 300 mts, what is the area of the rectangle?
which questions will be coming
Pls send me last 3years questions of Karur Vaisya Bank
1 Answers HP, Karur Vysya Bank KVB,
Hi Guys. I am an Instrumentation and Control Engineer(ICE) and have filled various PSU entrance exam forms. I wanted to know if anyone of you out there had any material for the preparation of the same. Any sort of material will be greatly appreciated. Be it previous year questions (Aptitude, GK or Technical) , study material or links to websites which do have this material. PSUs that I am going to appear in are HPCL, SAIL, ECIL and finally Gate. Any suggestions and advice is greatly welcomed. My E-Mail ID is kris_sreekanth86@yahoo.co.in
A boy has Rs 2. He wins or loses Re 1 at a time If he wins he gets Re 1 and if he loses the game he loses Re 1. He can loose only 5 times. He is out of the game if he earns Rs 5. Find the number of ways in which this is possible?
0 Answers 3i Infotech, Canara Bank, EDS,
City A population is 68000, decreasing at a rate of 80 per year City B having population 42000 increasing at a rate of 120 per Year. In how many years both the cities will have same population
5 Answers Accenture, CMC, Zycus Infotech,
in a school for a student out of a 100 he got 74 of average for 7 subjects and he got 79 marks in 8th subject. What is the average of all the subjects?
highest power of 25 that divides the product of the first 100 multiples of 5,74,100,62