Re: passing files to functions

2004-07-15 Thread John W . Krahn
On Thursday 15 July 2004 00:13, Massimiliano Cialdi wrote: > > I need to pass a file descriptor to a function. > If this function is defined in package it doesn't work! That is a Frequently Asked Question and can be found in perlfaq5. perldoc -q "How do I pass filehandles between subroutines" An

Re: passing files to functions

2004-07-15 Thread Randy W. Sims
Massimiliano Cialdi wrote: I need to pass a file descriptor to a function. If this function is defined in package it doesn't work! I attach a little example. Why it doesn't works, and how can I make it works? thanks use strict; use warnings; provides a clue: Bareword "FD" not allowed while "strict

passing files to functions

2004-07-15 Thread Massimiliano Cialdi
I need to pass a file descriptor to a function. If this function is defined in package it doesn't work! I attach a little example. Why it doesn't works, and how can I make it works? thanks -- Massimiliano Cialdi [EMAIL PROTECTED] [EMAIL PROTECTED] main.pl Description: Binary data mypack.pl