in reply to Perl junior entreats monastery for course help

Tell us your thoughts about answers to the questions. You don't want us to do your homework, do you?

My Answer to Question 1 is:
You can use any data type. Some are more appropriate than others ;-)

  • Comment on Re: Perl junior entreats monastery for course help

Replies are listed 'Best First'.
Re: Re: Perl junior entreats monastery for course help
by spyder78 (Initiate) on Jun 16, 2003 at 10:29 UTC
    This is what I think Question 1 could be.. I have no idea to be honest. sub CheckJumpDestination { my($jump_destination) = @_; if (exists($jump_destination)) { print STDOUT "Jump destination $jump_destination has already been received.\n"; } else { # Your code here. } }
      So you know about "exists". Tell us more about it. It's a good idea (really!).
        Yeah I learnt a little about the exists function in the book and the examples it gave made me think it would be ideal for question 1, but I was not entirely sure if I was on the right track. I understand that exists is used to search a file or variable for values.