Memoize

BasicWerk   EC Support   Technique   Facebook  

20141119232407_Perl_File_Spec_module

Perl_File_Spec_module

 

 

File_Spec.pl
 
#! /usr/bin/perl
use warnings;
use strict;
use File::Spec; # オブジェクト指向
use File::Spec::Functions; # 関数型インターフェース
 
print "File::Spec ", File::Spec->catfile( "path", "to", "file"), "\n";
print "File::Spec::Functions ", catfile( "path", "to", "file"), "\n";
 

 

 
% File_Spec.pl
File::Spec path/to/file
File::Spec::Functions path/to/file
 

 


© Shin Nakamura/BasicWerk 2014