Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: Compile err...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 11033 of 11532
Post > Topic >>

Re: Compile error

by yitzle@[EMAIL PROTECTED] (Yitzle) May 6, 2008 at 10:46 AM

On Tue, May 6, 2008 at 10:43 AM, Rodrigo Tavares
<digolinopage@[EMAIL PROTECTED]
> wrote:
> 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',
>          );
>   @[EMAIL PROTECTED]
 = keys (%numbers);
>
>  When I try to run come this message.
>  Undefined subroutine &main::chaves called at line
>
>  What's wrong ?
>
>  By,
>
>  Faria

1) You forgot to provide which line the error is occurring at.
2) The error message says that you are calling the function "chaves"
which is not defined. Yet the code you provided does not have "chaves"
in it anywhere.
3) The first line of code you provided is "numbers =". It should be
"%numbers ="
 




 3 Posts in Topic:
Compile error
digolinopage@[EMAIL PROTE  2008-05-06 07:43:01 
Re: Compile error
yitzle@[EMAIL PROTECTED]   2008-05-06 10:46:01 
Re: Compile error
sigzero@[EMAIL PROTECTED]  2008-05-06 11:33:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 6:27:44 CDT 2008.