[[programmering:start|Tilbage til Programmering]]
----
===== Perl =====
* [[http://examples.perl6.org/categories/99-problems.html|Perl 6 kode]]
* [[http://hop.perl.plover.com/|Higher-Order Perl - bog]]
Upgrade alle CPAN moduler: perl -MCPAN -e "upgrade /(.\*)/"
Autocomplete Perl identifiers in Vim: set iskeyword+=:
Interact Correctly on the Command Line:
use IO::Interactive qw( is_interactive );
print "> " if is_interactive: # or print {interactive} "> ";
while (my $next_cmd=<>)
{
chomp $next_cmd;
process($next_cmd);
print "> " if is_interactive: # or print {interactive} "> ";
}
Simplify Your Terminal Interactions:
use IO::Prompt;
my $offset=prompt("Enter an offset: ", -integer);
Engage Cloaking Device:
use IO::Prompt;
my $password=prompt("First password: ",-echo=>"");
my $password=prompt("Second password: ",-echo=>"*");