in reply to Re^2: how to goto &sysread ?
in thread how to goto &sysread ?
I've seen the routine use of &subcallABC in very ancient (>10+ year old Perl code). Maybe this was the way a very long time ago to call a subroutine. Nowadays, this just means ignore the prototype for subcallABC when calling that sub.
So, even if sysread() was a sub goto &sysread is wrong. You do not "jump" to subroutines, you "call" them. "Calling" means that we save our current place in the code with the intention of resuming where we left off, i.e. after the subroutine call.
Simply put, you do not "goto" a function or a subroutine. You "call" the function or subroutine, which means: save my current place in the code and go do something and when that is done resume my code after this "call". If you "goto" or "jump" directly into some function's or subroutine's code, it will cause a crash because the preamble of "where to go back to when I am finished" was not done.
Again, what do you want to do?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: how to goto &sysread ?
by ikegami (Patriarch) on Jul 25, 2011 at 06:16 UTC | |
by Marshall (Canon) on Jul 25, 2011 at 06:39 UTC | |
by Tanktalus (Canon) on Jul 26, 2011 at 14:06 UTC |