Next 1.1 File::Operations (cont.) Prev

File::Operations (cont.)

Other file-system operations

	make_path("/tmp/my-own/dir0");
	make_dir("/tmp/my-own/dir", 0711);
	copy_file("/etc/issue", "/tmp/my-own/dir/issue");
	remove_file("/tmp/my-own/dir/issue2");
	clean_dir("/tmp/my-own/dir");  # no effect, empty already
	remove_dir("/tmp/my-own");

Saving/loading tabular fields (TAB separated lines)

	save_field_file($filename, $lines_of_fields);
	my $lines_of_fields2 = load_field_file($filename);

	save_field_file($filename, $table, create_dirs => 1, delim => ',');
	my $table2 = load_field_file($filename, delim => ',');

Next Useful Perl Modules Prev