[ale] Writing to file in PERL
Jim Kinney
jim.kinney at gmail.com
Sat Mar 10 14:39:15 EST 2012
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
More information about the Ale
mailing list