in reply to using reference to subroutine

Then $i contains the empty string and the code isn't doing what you think it is. Look at the rest of the code more closely. We can't because you didn't include the actual code (just what you thought the code was). (:

- tye        

  • Comment on Re: using reference to subroutine (assume)

Replies are listed 'Best First'.
Re^2: using reference to subroutine (assume)
by kotoko (Novice) on Apr 05, 2007 at 13:45 UTC
    Thanks for the tip on the empty string.Then how should i do to make 1. an anonymous subroutine (is the $a and $b assigments ok for that?)2. Assign the reference of one of the anonymous subroutines to another variable.And 3. use this last variable to call the subroutine and pass arguments.