For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > September 2004 > write to file.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author write to file.
radioactiveman

2004-09-24, 3:59 pm

why won't this work?

#!/usr/bin/perl

open FILE,">/home/pcsc/tester/test1.txt" ||
die "error, cannot open file\n";
print FILE <<HTML;
test1, test2, test3
HTML
close FILE;

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com