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?
In reply to Re^3: how to goto &sysread ?
by Marshall
in thread how to goto &sysread ?
by perl5ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |