Push All Special Varible Before Calling a Fucnction
Hi...
I have a code like this: Code:
open (INPUT,"<file"){ is there any way that I can push $_ and other file pointers and pop them after calling a function? Thanks in advance.. |
Hi -
It looks like you're writing in Perl. Perl arrays can be used as stacks; you can "push" and "pop" anything you want, to your heart's content: http://www.ebb.org/PickingUpPerl/pickingUpPerl_4.html 'Hope that helps! |
All times are GMT -5. The time now is 02:48 PM. |