open KERLIS, "<$lis_file"; @lis_array=<KERLIS>;
i want to write a function to which i want to pass the contents of file i had read
there are two ways , one is to pass array and other is to pass file handle.
i had tried with passing array to function but i read some where pasing array is not optimized way of working
so i thought if i can pass file handle to fucntion.
is it posible to pass file handle to function / subroutine and if yes how can i do for my case
Edit: g0n - code tags
In reply to passing file handle to functions by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |