in reply to can't write a variable to a file
use strict; use warnings; my $string="Hello, world!"; print "$string\n"; open OUTPUT, ">sample.txt" or die "Cannot open sample.txt for writing. + $!"; print OUTPUT $string; close OUTPUT; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: can't write a variable to a file
by sabotodd (Initiate) on May 11, 2004 at 10:34 UTC | |
by graff (Chancellor) on May 12, 2004 at 01:38 UTC | |
by erniep (Sexton) on May 11, 2004 at 11:24 UTC | |
by nimdokk (Vicar) on May 11, 2004 at 11:26 UTC |