Code :
use strict; use warnings 'all'; use autodie; use utf8; use constant FICHIER_RESULAT => '/home/lenovo/Bureau/FarasaTool/out3.txt'; open my $fh_resultat, '>:utf8', FICHIER_RESULAT; my $fh1= 'text2.txt'; #java -Dfile.encoding=UTF-8 -jar FarasaSegmenter.jar -l true <text1.txt > out1.txt my @args = ('java','-Dfile.encoding=UTF-8','-jar','/home/lenovo/Bureau/FarasaTool/FarasaSegmenter.jar','-l','true', $fh1,$fh_resultat);
|