Compile error

[email protected] (Rodrigo Tavares)
Newsgroups perl.beginners
Message-ID <[email protected]>
Hello,

I create a hash, and i want take the keys.
Using Deitel Book, i take this example:

numbers = 
         (
           1  => 'one',  
           3  => 'two',
           5  => 'three',   
           7  => 'four',  
           9  => 'five', 
         );
 @hashkey = keys (%numbers);

When I try to run come this message.
Undefined subroutine &main::chaves called at line

What's wrong ?

By,

Faria


      Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
http://br.mail.yahoo.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.