Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Perl - Writing To A File

DZone's Guide to

Perl - Writing To A File

·
Free Resource


#!/usr/bin/perl
#Open a file for writing and write content to it.

open FILE, ">$file_name" or die $!;
print FILE $log;
close FILE;

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}