Re: Type-globbing filehandles

2005-03-17 Thread Offer Kaye
On Thu, 17 Mar 2005 12:54:23 -0600, Dave Kettmann wrote: > Here is the whole first part. Snipped part is just declaration of variables. > Okay, here is the problem: > > use File::Remote qw(:replace); > The problem is, when you use the ":replace" tag, File::Remote imports new "open" and "close"

RE: Type-globbing filehandles

2005-03-17 Thread Dave Kettmann
nal Message- > From: Offer Kaye [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 17, 2005 9:14 AM > To: Perl Beginners > Subject: Re: Type-globbing filehandles > > > On Thu, 17 Mar 2005 08:46:55 -0600, Dave Kettmann wrote: > > > > > > > > ope

Re: Type-globbing filehandles

2005-03-17 Thread Offer Kaye
On Thu, 17 Mar 2005 08:46:55 -0600, Dave Kettmann wrote: > > > > open (CFG, "/etc/backup.conf") or die "Can't open config file: $!\n"; > while () { > } > close CFG; > > > > Ok so when I run my program like this .. it complains on the the open() line > and the close() line. > It

Type-globbing filehandles

2005-03-17 Thread Dave Kettmann
Hi all, I think I am using the term (Type-globbing) correctly but we will see... I have a program I am making that needs to read lines from a file. Here is a snip of code to show what I'm doing... #/usr/bin/perl use strict; use warnings; my (%User_Preferences, $var, $value); open (CFG,