diff options
author | 2019-02-13 21:15:00 +0000 | |
---|---|---|
committer | 2019-02-13 21:15:00 +0000 | |
commit | 9f11ffb7133c203312a01e4b986886bc88c7d74b (patch) | |
tree | 6618511204c614b20256e4ef9dea39a7b311d638 /gnu/usr.bin/perl/cpan/perlfaq | |
parent | Import perl-5.28.1 (diff) | |
download | wireguard-openbsd-9f11ffb7133c203312a01e4b986886bc88c7d74b.tar.xz wireguard-openbsd-9f11ffb7133c203312a01e4b986886bc88c7d74b.zip |
Fix merge issues, remove excess files - match perl-5.28.1 dist
looking good sthen@, Great! bluhm@
Diffstat (limited to 'gnu/usr.bin/perl/cpan/perlfaq')
-rw-r--r-- | gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq.pm | 2 | ||||
-rw-r--r-- | gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq.pod | 2 | ||||
-rw-r--r-- | gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq1.pod | 26 | ||||
-rw-r--r-- | gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq2.pod | 2 | ||||
-rw-r--r-- | gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq3.pod | 8 | ||||
-rw-r--r-- | gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq4.pod | 31 | ||||
-rw-r--r-- | gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq5.pod | 6 | ||||
-rw-r--r-- | gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq6.pod | 2 | ||||
-rw-r--r-- | gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq7.pod | 2 | ||||
-rw-r--r-- | gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq8.pod | 4 | ||||
-rw-r--r-- | gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq9.pod | 2 | ||||
-rw-r--r-- | gnu/usr.bin/perl/cpan/perlfaq/lib/perlglossary.pod | 2 |
12 files changed, 44 insertions, 45 deletions
diff --git a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq.pm b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq.pm index 0be9c18d34d..823817c35b4 100644 --- a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq.pm +++ b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq.pm @@ -1,5 +1,5 @@ use strict; use warnings; package perlfaq; -$perlfaq::VERSION = '5.021010'; +$perlfaq::VERSION = '5.021011'; 1; diff --git a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq.pod b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq.pod index 5be2f6d4089..1b8db788f42 100644 --- a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq.pod +++ b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq.pod @@ -4,7 +4,7 @@ perlfaq - frequently asked questions about Perl =head1 VERSION -version 5.021010 +version 5.021011 =head1 DESCRIPTION diff --git a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq1.pod b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq1.pod index c2c793efa7d..b6d4c8e61b4 100644 --- a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq1.pod +++ b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq1.pod @@ -4,7 +4,7 @@ perlfaq1 - General Questions About Perl =head1 VERSION -version 5.021010 +version 5.021011 =head1 DESCRIPTION @@ -109,12 +109,6 @@ as its whitewashed bones have fractured or eroded. =item * -The current leading implementation of Perl 6, Rakudo, released a "useful, -usable, 'early adopter'" distribution of Perl 6 (called Rakudo Star) in July of -2010. Please see L<http://rakudo.org/> for more information. - -=item * - There are really two tracks of perl development: a maintenance version and an experimental version. The maintenance versions are stable, and have an even number as the minor release (i.e. perl5.18.x, where 18 is the @@ -148,21 +142,21 @@ See L<perlhist> for a history of Perl revisions. =head2 What is Perl 6? -Perl 6 was I<originally> described as the community's rewrite of Perl 5. -Development started in 2002; syntax and design work continue to this day. -As the language has evolved, it has become clear that it is a separate -language, incompatible with Perl 5 but in the same language family. +Perl 6 was I<originally> described as the community's rewrite of Perl 5, +however as the language evolved, it became clear that it is a separate +language, but in the same language family as Perl 5. + +Perl 6 is not intended primarily as a replacement for Perl 5, but as its +own thing - and libraries exist to allow you to call Perl 5 code from Perl +6 programs and vice versa. Contrary to popular belief, Perl 6 and Perl 5 peacefully coexist with one another. Perl 6 has proven to be a fascinating source of ideas for those using Perl 5 (the L<Moose> object system is a well-known example). There is overlap in the communities, and this overlap fosters the tradition of sharing -and borrowing that have been instrumental to Perl's success. The current -leading implementation of Perl 6 is Rakudo, and you can learn more about -it at L<http://rakudo.org>. +and borrowing that have been instrumental to Perl's success. -If you want to learn more about Perl 6, or have a desire to help in -the crusade to make Perl a better place then read the Perl 6 developers +If you want to learn more about Perl 6 read the Perl 6 developers page at L<http://www.perl6.org/> and get involved. "We're really serious about reinventing everything that needs reinventing." diff --git a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq2.pod b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq2.pod index 4c652dbfa0c..a235c8b5e7f 100644 --- a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq2.pod +++ b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq2.pod @@ -4,7 +4,7 @@ perlfaq2 - Obtaining and Learning about Perl =head1 VERSION -version 5.021010 +version 5.021011 =head1 DESCRIPTION diff --git a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq3.pod b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq3.pod index 78a2bab024f..dcab664d454 100644 --- a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq3.pod +++ b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq3.pod @@ -4,7 +4,7 @@ perlfaq3 - Programming Tools =head1 VERSION -version 5.021010 +version 5.021011 =head1 DESCRIPTION @@ -370,6 +370,12 @@ Perl Editor by EngInSite is a complete integrated development environment (IDE) for creating, testing, and debugging Perl scripts; the tool runs on Windows 9x/NT/2000/XP or later. +=item IntelliJ IDEA + +L<https://plugins.jetbrains.com/plugin/7796> + +Camelcade plugin provides Perl5 support in IntelliJ IDEA and other JetBrains IDEs. + =item Kephra L<http://kephra.sf.net> diff --git a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq4.pod b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq4.pod index f6bf2caaf9c..304729ceb82 100644 --- a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq4.pod +++ b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq4.pod @@ -4,7 +4,7 @@ perlfaq4 - Data Manipulation =head1 VERSION -version 5.021010 +version 5.021011 =head1 DESCRIPTION @@ -2556,24 +2556,23 @@ some gotchas. See the section on Regular Expressions. =head2 How do I determine whether a scalar is a number/whole/integer/float? Assuming that you don't care about IEEE notations like "NaN" or -"Infinity", you probably just want to use a regular expression: +"Infinity", you probably just want to use a regular expression (see also +L<perlretut> and L<perlre>): use 5.010; - given( $number ) { - when( /\D/ ) - { say "\thas nondigits"; continue } - when( /^\d+\z/ ) - { say "\tis a whole number"; continue } - when( /^-?\d+\z/ ) - { say "\tis an integer"; continue } - when( /^[+-]?\d+\z/ ) - { say "\tis a +/- integer"; continue } - when( /^-?(?:\d+\.?|\.\d)\d*\z/ ) - { say "\tis a real number"; continue } - when( /^[+-]?(?=\.?\d)\d*\.?\d*(?:e[+-]?\d+)?\z/i) - { say "\tis a C float" } - } + if ( /\D/ ) + { say "\thas nondigits"; } + if ( /^\d+\z/ ) + { say "\tis a whole number"; } + if ( /^-?\d+\z/ ) + { say "\tis an integer"; } + if ( /^[+-]?\d+\z/ ) + { say "\tis a +/- integer"; } + if ( /^-?(?:\d+\.?|\.\d)\d*\z/ ) + { say "\tis a real number"; } + if ( /^[+-]?(?=\.?\d)\d*\.?\d*(?:e[+-]?\d+)?\z/i ) + { say "\tis a C float" } There are also some commonly used modules for the task. L<Scalar::Util> (distributed with 5.8) provides access to perl's diff --git a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq5.pod b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq5.pod index cbb73c74f55..239f92a530e 100644 --- a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq5.pod +++ b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq5.pod @@ -4,7 +4,7 @@ perlfaq5 - Files and Formats =head1 VERSION -version 5.021010 +version 5.021011 =head1 DESCRIPTION @@ -1278,7 +1278,7 @@ comes with Perl tries to convert C include files to Perl code, which can be C<require>d. FIONREAD ends up defined as a function in the I<sys/ioctl.ph> file: - require 'sys/ioctl.ph'; + require './sys/ioctl.ph'; $size = pack("L", 0); ioctl(FH, FIONREAD(), $size) or die "Couldn't call ioctl: $!\n"; @@ -1378,7 +1378,7 @@ used for things that Perl opened itself, even if it was a dup of a numeric descriptor as with C<MHCONTEXT> above. But if you really have to, you may be able to do this: - require 'sys/syscall.ph'; + require './sys/syscall.ph'; my $rc = syscall(SYS_close(), $fd + 0); # must force numeric die "can't sysclose $fd: $!" unless $rc == -1; diff --git a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq6.pod b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq6.pod index c889ca4e821..0db550e34ac 100644 --- a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq6.pod +++ b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq6.pod @@ -4,7 +4,7 @@ perlfaq6 - Regular Expressions =head1 VERSION -version 5.021010 +version 5.021011 =head1 DESCRIPTION diff --git a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq7.pod b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq7.pod index fb677365ced..4d568a3a8bf 100644 --- a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq7.pod +++ b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq7.pod @@ -4,7 +4,7 @@ perlfaq7 - General Perl Language Issues =head1 VERSION -version 5.021010 +version 5.021011 =head1 DESCRIPTION diff --git a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq8.pod b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq8.pod index 3bbd45998f0..42b27ab1276 100644 --- a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq8.pod +++ b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq8.pod @@ -4,7 +4,7 @@ perlfaq8 - System Interaction =head1 VERSION -version 5.021010 +version 5.021011 =head1 DESCRIPTION @@ -239,7 +239,7 @@ and in pixels: This is more portable than the raw C<ioctl>, but not as illustrative: - require 'sys/ioctl.ph'; + require './sys/ioctl.ph'; die "no TIOCGWINSZ " unless defined &TIOCGWINSZ; open(my $tty_fh, "+</dev/tty") or die "No tty: $!"; unless (ioctl($tty_fh, &TIOCGWINSZ, $winsize='')) { diff --git a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq9.pod b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq9.pod index bc687467c3f..7fca820a245 100644 --- a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq9.pod +++ b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlfaq9.pod @@ -4,7 +4,7 @@ perlfaq9 - Web, Email and Networking =head1 VERSION -version 5.021010 +version 5.021011 =head1 DESCRIPTION diff --git a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlglossary.pod b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlglossary.pod index 76a54f0e540..3392d9dcddc 100644 --- a/gnu/usr.bin/perl/cpan/perlfaq/lib/perlglossary.pod +++ b/gnu/usr.bin/perl/cpan/perlfaq/lib/perlglossary.pod @@ -7,7 +7,7 @@ perlglossary - Perl Glossary =head1 VERSION -version 5.021010 +version 5.021011 =head1 DESCRIPTION |