Article View: comp.lang.perl.misc
Article #50Re: Writing to file?
From: Rick Trankle
Date: Mon, 11 Dec 1995 00:00
Date: Mon, 11 Dec 1995 00:00
25 lines
1026 bytes
1026 bytes
try this:
print (FOO, "filename")
Zenin <zenin@best.com> wrote:
>I can't seem to figure out how to write to a file.
>I thought it was somthing like
> write(FOO, "filename");
>but I guess it's no so easy. :(
>So what is the syntax to do somthing like:
> #!/usr/bin/perl
> open(FOO, "original_filename");
> while(<FOO>) {
> do some stuff;
> }
> write(FOO, "new_filename");
> close FOO;
>TIA!
>-Zenin
>zenin@best.com
Technical Details
Message-ID:
<4ai4p2$74m@news.ais.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4a54h9$a0g@shellx.best.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9f6d,3944997a5420a56f X-Google-Attributes: gidf9f6d,public X-Google-Thread: fa0ae,3944997a5420a56f X-Google-Attributes: gidfa0ae,public X-Google-Thread: 112e82,3944997a5420a56f X-Google-Attributes: gid112e82,public From: rjt@dataviews.com (Rick Trankle) Subject: Re: Writing to file? Date: 1995/12/11 Message-ID: <4ai4p2$74m@news.ais.net> X-Deja-AN: 121568910 references: <4a54h9$a0g@shellx.best.com> organization: American Information Systems, Inc. newsgroups: comp.lang.perl.misc,best.unix,best.general