John W. Krahn wrote:
Richard Lee wrote:
John W. Krahn wrote:
Richard Lee wrote:
John W. Krahn wrote:
You are not returning the contents of @bad and you are not passing
in the name of the file to open so I assume that this is in a
subroutine because you are calling it many times in your program?
Yes, it is sub
The question was: are you calling the subroutine once or calling it
many different times?
it will be called only once.
@bad is global variable
If you are only calling it once why is it a subroutine at all?
John
does subroutine introduce additional delay?
I am trying to write a lot of perl and trying to organize my program in
case I need to modulalize it. Well, I just like
having pretty much all function in sub.
Also trying to learn subroutine..
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/