버전 확인 : perl -v 또는 perl –verion
참조 : http://learnperl.scratchcomputing.com/tutorials/getting_started/
Perl Regex Syntax 참조: https://www.tutorialspoint.com/perl/perl_regular_expressions.htm
perl -e 'print "Hello World!\n"'
Error 시
1 2 3 4 5 6 7 8 9 |
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.utf8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). |
툴설치
1 2 3 4 5 6 7 8 9 |
locale-gen en_US.UTF-8 export LANGUAGE=en_US.UTF-8 export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8 locale-gen en_US.UTF-8 dpkg-reconfigure locales |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
a# perl -v This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-gnu-thread-multi (with 67 registered patches, see perl -V for more detail) Copyright 1987-2017, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. |