|
User since: |
Mar 02, 2001 at 18:20 UTC
(24 years ago) |
Last here: |
Jul 28, 2017 at 10:33 UTC
(7 years ago) |
Experience: |
5925
|
Level: | Vicar (15) |
Writeups: |
352
|
Location: | Germany/Ederen or Düsseldorf |
User's localtime: |
Dec 03, 2024 at 15:28 CET
|
Scratchpad: |
View
|
For this user: | Search nodes |
|
Well, that's me after several weeks of non-shaving :-)
Authors I like
- J. R. R. Tolkien
- Terry Pratchett
- Douglas Adams
- T. H. White
- Alan Dean Foster
-----BEGIN PERL GEEK CODE BLOCK-----
Version: 0.01
P+++>++++(+++)$c-->+P6+
R++>++++M++>+++O++>+++MA++E++PU+BD
C++D++>+++S++X+WP+++MO+PP!n-CO PO o+G
A-OLC+OLCC+OLJ--Ee---Ev+Eon-uL++uS uH
uo w-m!
------END PERL GEEK CODE BLOCK------
Starting my own index into the Monastery here, not much by now
Link types at PM (because i tend to forget :-):
- [id://] a node id
- [cpan://] searches CPAN
- [jargon://] searches the Jargon file hosted at the University of Amsterdam.
- [kobe://] is an alternate for the [cpan://] tag
- [perldoc://] searches perldoc. The idea here is to provide a way of linking to current Perl documentation.
- [pad://] is a shortcut to a user's scratch pad
SQL snippets
perl idioms
- slurp a file:
my $contents = do { local (@ARGV, $/) = $filename; <> };
- set even elements of @list to 'bla':
$_ % 2 or $list[$_] = 'bla' for 0..$#list;
- getting indices sorted by value:
my @indices = sort { $a[$a] <=> $a[$b] } 0..$#a;
- initialize hash elements:
@hash{@array} = (1) x @array
- assign empty string defaults:
$_ = '' for grep ! defined ( $foo, $bar, $baz );
- blank padding:$str = pack('A40',$str);
|