in reply to Re: Perl junior entreats monastery for course help
in thread Perl junior entreats monastery for course help

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. } }
  • Comment on Re: Re: Perl junior entreats monastery for course help

Replies are listed 'Best First'.
Re: Re: Re: Perl junior entreats monastery for course help
by Skeeve (Parson) on Jun 16, 2003 at 10:33 UTC
    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.