Re: Use of uninitialized value for perl

2017-11-05 Thread John W. Krahn
On Sun, 2017-11-05 at 00:43 +, Dong Liu wrote: > I try used perl script to get characters from data: > > #!/usr/bin/perl -w > use v5.14; > while (){ > chomp; > my $line = ''; > $line = (split //,@_)[5]; At no point in your script do you or perl assign a value to the array @_ so th

Warnings::Unused Linux perl

2017-11-05 Thread Martin McCormick
Most of the work I did in perl was on a FreeBSD system and not surprisingly, perl under Linux behaves essentially the same but one thing I notice is that Warnings::Unused doesn't appear as a module. It is quite useful in keeping one's code free of clutter so the question is whether there is anothe

Re: Warnings::Unused Linux perl

2017-11-05 Thread Shlomi Fish
On Sun, 05 Nov 2017 16:51:09 -0600 "Martin McCormick" wrote: > Most of the work I did in perl was on a FreeBSD system and not > surprisingly, perl under Linux behaves essentially the same but > one thing I notice is that Warnings::Unused doesn't appear as a > module. It is quite useful in keepin

Re: Warnings::Unused Linux perl

2017-11-05 Thread Martin McCormick
Shlomi Fish writes: > Hi Martin, > > please see https://metacpan.org/release/warnings-unused as well as > http://perl-begin.org/topics/cpan/wrappers-for-distributions/ and > http://perl-begin.org/topics/cpan/ . It should not be hard to install and > your > Linux distro may already have it packag