Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This creates the file, but nothing is written into it? I'm working on XP Pro with Activestate PERL 5.8.6 build 811. Help! Alexopen FILE, ">file.txt"; $record = <STDIN>; print FILE "The is the first line\n"; print FILE "$record\n"; close FILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting STDIN and writing to a file
by sk (Curate) on Jun 08, 2005 at 21:02 UTC | |
|
Re: Getting STDIN and writing to a file
by ruoso (Curate) on Jun 08, 2005 at 21:09 UTC | |
|
Re: Getting STDIN and writing to a file
by PerlingTheUK (Hermit) on Jun 08, 2005 at 21:10 UTC | |
|
Re: Getting STDIN and writing to a file
by Anonymous Monk on Jun 08, 2005 at 21:33 UTC | |
by ruoso (Curate) on Jun 08, 2005 at 22:42 UTC |