Re: Filehandles named with a variable

2002-04-03 Thread Peter Scott
At 03:48 PM 4/2/02 -0600, Mr Hash wrote: >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 >gobblewort

Re: Filehandles named with a variable

2002-04-02 Thread Jenda Krynicky
From: Mr Hash <[EMAIL PROTECTED]> > $1 is the resultant of a regex match. It don't need to be around very > long, because I build a hash of open filehandles (key = filehandle > string, value = file) at the time I open the file. > > And no, I don't close 'em! exit() does just fine. Something lik

Re: Filehandles named with a variable

2002-04-02 Thread Mr Hash
like: > > You REALLY shouldn't use $1 for a variable name, though, since it has a > special meaning. > > -Original Message- > From: David Gray [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 02, 2002 2:33 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] >

RE: Filehandles named with a variable

2002-04-02 Thread Timothy Johnson
You REALLY shouldn't use $1 for a variable name, though, since it has a special meaning. -Original Message- From: David Gray [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 2:33 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Filehandles named with a variable

RE: Filehandles named with a variable

2002-04-02 Thread David Gray
> 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..