[hemmerling] Perl 2/2

Related page:

Tips & Tricks

Testing

  • You may just write XUnit-alike testcases for modules ( “myclass.pm” ), not for applications ( “myclass pl” ).

Checking Input Values if it is a Number

die "Error - Program is terminated" if $result = ~/\D/;

Perl - The Language

Object-oriented Perl

Moose

Mouse

Any::Moose

  • meta::cpan "Any::Moose" - “*deprecated* - use Moo instead!”.
  • “Any::Moose” is a a deprecated implementation of the “Moose” syntax.

Moo

  • “Moo” is an implementation of the “Moose” syntax.
  • Perl experts suggest to use Moo, in 2013 :-).
  • Perl experts suggest to learn Perl with Moo, instead of traditional Perl documented in books of the 1990ths and early 2000ths, in 2013 :-).

bless

bless Resources

Moose, Mouse, Any::Moose, Moo Resources

Resources

Error Handling and Signals

Appropriate OpenDirectory Directory Pages

 
en/perl02.html.txt · Last modified: 2017/06/26 06:35 (external edit) · []
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki