Dharshana Eswaran wrote:
> Hi all,

Hello,

> In the below program, i give in the hash as
> 
> %TypeofNumber  = ( 0b00 => Integer, 0b01 => Floating, 0b10 => Char, 0b11 =>
> Double );

*You* *have* *to* *quote* *strings*

my %TypeofNumber = ( 0b00 => 'Integer', 0b01 => 'Floating', 0b10 => 'Char',
0b11 => 'Double' );

So now your hash looks like:

( 0 => 'Integer', 1 => 'Floating', 2 => 'Char', 3 => 'Double' );

However the strings you are trying to match are '00', '01', '10' and '11' so
that will not work correctly.



John
-- 
Perl isn't a toolbox, but a small machine shop where you can special-order
certain sorts of tools at low cost and in short order.       -- Larry Wall

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to