On Wednesday, June 5, 2002, at 03:05 , Jenda Krynicky wrote:
> From:"siren jones" <[EMAIL PROTECTED]> >> I'm trying to figure out some cgi code which has the statment >> >> &readparse(*input); [..] > What is it? A clear hint that the code was written for Perl 4. > Run away from it if you can. > > Jenda > > P.S.: The *input is a glob. Most probably "containing" a filehandle > in this case. granted the code referenced in: Found in /System/Library/Perl/pods/perlfaq7.pod How can I pass/return a {Function, FileHandle, Array, Hash, Method, Regex}? that comes with the default perl 5.6.0 recommends that one check the pass by reference in perlsub and the typeglob section of perldoc perldata where we notice: " Temporary Values via local() WARNING: In general, you should be using `my' instead of `local', because it's faster and safer. Exceptions to this include the global punctuation variables, filehandles " but provides the same 'splutter(\*STDOUT)' type of passing a typeglob around... all of which leads me back to the question of whether your position here is advocating something on the order of open(FH, $filename) or die "no open $filename:$!\n"; my $fh = fileno(FH); goSubBeatState($fh, @mess_to_grovel); or should we have gone through IO::Handle to begin with???? or is the problem here that passing file handles around is not always a really smart thing to do to begin with???? I know that I have code where I pass around the FD for a socket.... so catch me up here homeboy - what is the orthodox trick? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]