LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   DamnSmallLinux (https://www.linuxquestions.org/questions/damnsmalllinux-42/)
-   -   Perl v5.14.1 problem at first try (https://www.linuxquestions.org/questions/damnsmalllinux-42/perl-v5-14-1-problem-at-first-try-4175588065/)

parcdulas 08-26-2016 04:09 PM

Perl v5.14.1 problem at first try
 
Hi,
As a complete perl beginner I thought I would try Perl as I have a longish XML string that comes in on the USB about every 5 or 6 seconds. I Invoked the terminal in DSL and checked Perl was installed with perl -v

I got:
perl: warning: Setting locale failed.
perl: warning: Please check your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C")

Then more nearly what I expected:

This is perl 5, version 14, subversion 1 (v5.14.1) etc

Whatever I type I usually get the same warnings about locale settings as above.

Can any one steer me how to set up perl in DSL?

Thanks,

Martin

Rinndalir 08-26-2016 04:46 PM

Try

LANG="en_US.UTF-8" perl -v


All times are GMT -5. The time now is 04:03 AM.