[roch-pm] Help with File handle.

James E Keenan jkeen at concentric.net
Sat Feb 22 22:09:07 CST 2003


----- Original Message -----
From: "echo dev" <echo_dev at hotmail.com>
To: <rochester-pm-list at happyfunball.pm.org>
Sent: Saturday, February 22, 2003 8:31 PM
Subject: Re: [roch-pm] Help with File handle.


> > > when I print something (something more like 500+
> > > lines of paths) to stdio it prints everyone\ but when I print to a
file
> >it
> > > does'nt print anything.  I open the file with open
> > >   (CONFIG_FILE, ">/home/hde/file.conf") or
> > >         die "Can't open file file.conf : $!\n";
> > >
> > > then I select the output like
> > >
> > > select CONFIG_FILE;
> > >
> >In the simplest case, there's no need to 'select CONFIG_FILE'.  Why
> >couldn't
> >you just say:
> >     print CONFIG_FILE "$_\n" foreach (@paths);
> >
> >Jim Keenan
> >
> >--
> >For information on unsubscribing from this list, please visit
> >http://rochester.pm.org
> I have tried both and nothing will work except when I print to stdio.
>
> hde
>

Then you should probably post the "config sub" you referred to in the OP.

--
For information on unsubscribing from this list, please visit
http://rochester.pm.org



More information about the Rochester-pm mailing list