Warning: Trying to access array offset on value of type null in /var/www/html/inc/parserutils.php on line 151

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/inc/parserutils.php:151) in /var/www/html/inc/actions.php on line 38
programmering:perl [Random bits of knowledge]

User Tools

Site Tools


No renderer 'pdf' found for mode 'pdf'
programmering:perl

Tilbage til Programmering


Perl

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=>"*");
programmering/perl.txt · Last modified: 2023/10/21 19:19 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki