[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Writing to file in PERL
- Subject: [ale] Writing to file in PERL
- From: jim.kinney at gmail.com (Jim Kinney)
- Date: Sat, 10 Mar 2012 14:39:15 -0500
- In-reply-to: <[email protected]>
- References: <[email protected]>
change it it to open (INPIPE '>/opt/input') or die "Can't open because $!
\n"
That will show error details.
On Sat, Mar 10, 2012 at 2:07 PM, Terry Bailey <terry at bitlinx.com> wrote:
> Hi,
>
> I cannot get PERL to write to a file. The file, named input, is set
> at 777 and I think the syntax in the script is correct. Does PERL
> require other permissions? I am runing centOS 5.4. The code is:
>
> open (INPIPE, '>/opt/input');
>
> print INPIPE "$data";
>
> close (INPIPE);
>
> Thank you in advance for your help.
>
> Terry
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
--
--
James P. Kinney III
As long as the general population is passive, apathetic, diverted to
consumerism or hatred of the vulnerable, then the powerful can do as they
please, and those who survive will be left to contemplate the outcome.
- *2011 Noam Chomsky
http://heretothereideas.blogspot.com/
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20120310/132db142/attachment.html