develooper Front page | perl.beginners | Postings from April 2002

Filehandles named with a variable

Thread Next
From:
Mr Hash
Date:
April 2, 2002 13:49
Subject:
Filehandles named with a variable
Message ID:
20020402214859.GA13773@local.enodev.com
So, I'm trying to 'open ($1,">>$file")', where $1 is a string like
"cbQosCMPrePolicyPktOverflow".

Obviously, with use strict this does not work. How can I make it work? I
need arbitrarily named filehandles. I know, it could get rended with
gobbleworts if the data gets out of hand...

TIA for any help.

--
Mr Hash
core@enodev.com

I invented the cordless extension cord
						-- Stephen Wright

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About