Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw


by Discipulus (Priest)
on Jun 13, 2002 at 08:04 UTC ( #174111=user: print w/ replies, xml ) Need Help??

In the picture you can see my wonderful historical kawasaki motorbikes of serie GPZ Unitrack (1986 and 1984).

starting learning Perl as a game in a hot summer one year ago (ie 2001) on my linux system and now..
2003..trying to avoid learning vb administrating win32 with Perl..
2007..trying to avoid learning C# administrating win32 with Perl..
2013..trying to avoid learning powershell to manage w2k8r2 using Perl...
riding my Kawasaki GPZ 550
...April 12 2012: riding my Kawasaki GPZ 750..
29 July 2014 Discipulus became 668th in Saints in our Book

full page chat and last hour of cb

interesting info on stat file using the lonely underscore.
@_ and alias behaviour - many interisting things
autoincrement autodecrement explanation and history
about learning process
LWP check if Request was redirected
Spped up suggestion poit to the incredible MCE module
interesting thread about object oriented Perl that points to this subthread and to a very deep discussion about Perl object OO and Moose
Perl on RaspberryPi
to valuable for a new Perl job by YourMother
good thread about test testing and habits. Tux abou refactoring code and Test driven design
About windows inode here BrowserUk and others inodes found via gnuwin32 seems more recent of unxutils
about context and other links too
about rounding integers here and BrowserUk's random cross platform. floating point addition and About Floating-Point Arithmetic and 1+1 != 2 and Humans have too many fingers Decimal Floating Point can arrive soon.
perl.exe vs wperl.exe here and wperl.exe and about temporary files on windows and SIDs or Unaltered child return code on Windows and win32 exit code after a crash guide
Multiplexing log output: Log4perl of the poors is mine prof of concepts to mimicry Log4Perl. Interstings also Loops's attempt found at Output to STDOUT and print last line to console
Optimising large files processing Recommendations for efficient data reduction/substitution application Using indexing for faster lookup in large file
about closures Merlyn column and Why closures where tye sythetize 4 types of progrmming, Corion pointed me to Kingdom of Nouns unrelated but quite related Why I like functional programming How A Function Becomes Higher Order and Real life examples of closures and also Closures Explained also tobyink on closures
switch to ssl for free
mass editi in Perl
Unicode utf-8 codepoints and graphemes and also The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!) also when i will be able to understand all this post about Unicode i'll be happy in the new millennium replicate dev env
Passing an open handle to another process on win and about system 1 and system detached many interesting comments in and salva's question and tye's answer about Windows and pipes that don't close.. quoting BrowserUk from hereOn Windows, parameters are passed to executables as a single string, so the list forms of system & open etc., join the list into a single string before calling CreateProcess().
an interesting reading Exploring Programming Language Architecture in Perl found at Writing a Programming Language in Perl another intersting by Dominus
about threads on windows and an ufo Q module. and Adding parallel processing to a working Perl s‎crip‎t also see zentara words and links also another example here zentara's on IPC::Shareable and Parallel::ForkManager and Handling error on threads and ikegami's monitor child exit threads on Gtk problems and another Gtk threaded application Threads::Queue example
just for fun (please do not feel offended, humor is humor..): if programming laguages were religions or cars other cars or car pictures or women or boats or drinks or bands or philosophers or natural language?
Fudge means a sweet.. but here you have a very detailed error reporting sub. using Log4perl instead of debugger About error handling IPC Open3 Catching errors by Ikegami
Tricks with DBI very old but usefull and GMAX DBI tutorial GMAX The fine art of database programming also Databases made easy by GrandFather
web programming for beginners and also the w3 validator or the web perfomance analyzer and why frames are not good (very ancient article)
Re: How to understand chapter 6 of Higher Order Perl?
One Zero variants_without_repetition combinatory calculus in aregex in the oha's answer.
Custom Sort An AoA intersting serie of replies about costum double sort.
colorized output
the x !! operator combo . found in conditional statements in list constructors ..but better is tye's ! $test ? () : ( ... )
Perl object memory overhead view the interesting replies.
Re: Ask for STDIN but don't pause for it
pack unpack tutorial and perl.pack.unpack.printf.cheat.sheet unpack is not so obviously the opposite of pack (padding)
array and hash and other speed comparison
load module in BEGIN block ikegami's explaination of BEGIN sequence
The early history of Perlmonks
about app packaging and kirsle blog too an some good link here too
The Dynamic Duo --or-- Holy Getopt::Long, Pod::UsageMan!
maze generator thanks fo funny to ambrus and choroba
Recursive Directory print view especially Laurent_R's answers.
Joel on software - The Process of Designing a Product
old but useful: behind the gui lives the shell
IP and subnets in given range
Perlmonks's World Map gently hosted by moritz
performance tunning of a lamp installation mysql swappiness problem
old utility to show ascii code
about our
lot of link about Tk in comments by monks ... but discovered Prima! and PerlQt
Re^3: Perl compiler request - flogging the dead horse! very interesting explanation of perl compile complexity
interesting bench about splitting long lines
Mojolicious::Lite +and jQuery +AJAX + Mojo::Template
Re: Pointers for building Perl off of Strawberry Perl. compiling a Perl under win
Perl was given to light ligther side of Perl search
check your s‎crip‎t against this
Damian Conway's ten rules for when to use OO
flip flop operator Perl Idioms Explained.. and Hidden features of Perl and also
Teaching perl: Re: How to teach perl to novice programer and Re: What is the best way to master perl (do your homework)
About new modules: perlnewmod that links also to this one... Create a ppd module distribution and also Corion's answer a lot of links about naming and new modules and about installed modules About Packages and modules namespaces Writing Solid CPAN Modules require "" with use strict; points to Include subs from different perl file
poem on strict... The strictures, according to Seuss Levels of strictness and compatibility when use -w or use warnings module related and veri interesting
Plack Dancer Dancer2 et alia: Understanding benefits of Plack PSGI, Plack and also Dancer2 sessions under Plack and also Beginner's guide to Dancer Dancer calendar 2010 2011 2012 2013 few things on Dancer2 SawyerX speacks about Dancer2 and CGI must die! larsen writes about plack Dancer2 sessions under Plack About sessions and modules to do it How to make ajax requests in Dancer2 Write a Filehandle w/Dancer2 Dancer2 - How to loop over a ref to a HoH Dancer & Plackup - Redirect not refreshing page data Bizarre Dancer encoding behavior Need tipps for identifying utf-8 problems with Dancer and MySQL Beginner's guide for Perl Dancer contains internet introduction too Current Dancer route Your Mother about recicling an existing CGI in plack free Dancer Hosting (not tested) and psgi links and plack ones by Miyagawa and tobyink on deploying strategies of psgi app and Plack and multiple domains which point to this one and mount_multiple_apps_with_plack part one two and 3 and last also about session signed cookies with Plack form from CGI to Dancer and Template Toolkit some links about basic internet Jeffa Dancer example Plack modperl FASTCGI etc also link to plack for beginners Multiple plack apps and deplyment
How can I visualize my complex data structure?good post about dumping complex datastructure, and comparison on Perl serialization options also GrandFather note

Note that $, % and @ don't tell you what type variables are, they tell you what type of thing an expression returns. So $ref returns a scalar which may be a reference to an array or a hash. @$ref and @{$ref} return arrays (they are equivalent) by dereferencing $ref. The {} version is much clearer (and often required) when the expression used to get the reference is complicated.

SOAP, WSDL, XML service/clientgood post (seems) on WSDL links about soap and wsdl
How do I mix up Perl and jQuery (for beginners) lot of examples Perl + jQuery
XML "If you need to deal with XML, first, we’re very sorry." b d foy and and and speed comparison mirod schratchpad and Re: Another simple XML Twig question and ambrus's Do not reinvent the wheel: real-world example using XML::Twig and also and choroba about XML
Davido's precious regex tester is now here also onther testing site suggested by Eily also, anonimously suggested, rxrx and this one and this other one and also VRegExp or 7stages of a regexes user and and and Using Look-ahead and Look-behind 7 Stages of a Regex User two-dimension regex
lot of links about debugging Perl code and Use strict warnings and diagnostics
Tartaglia's Pascal's Triangle: mine Pascal Triangle Pascal's triangle... where you can find perl -e "while((@_=(1,map$_[$_-1]+$_[$_],1..@_))<=$ARGV[0]){print qq(@_\n)}" Binomial Expansion and another interesting page see also The Oldest Plays the Piano Explain one liner for fibonacci and Explain Fibonacci one-liner ?? also test of primality Another primality a quasi sieve My big tk program about Tartaglia's triangle
big integer 64bit caveats
SSH2 demo
Use strict warnings and diagnostics or die
ooh, oh, ohh is still alive!
from Why do people say 'Perl' is dead?!?!
speed comparison 2012 and choroba mentioned TIOBE in chat; never eard.
refactoring CGI appsRe: Refactor CGI::Application and supporting scrits difference between library and framework Re: What does Mojolicious do exactly and is it right for me? IIS 7.5 Re: can Perl-CGI run persistently on Windows 2008 with IIS 7.5? how? Activestate and iis7.5 Perl on IIS 7 and win2k8 header examples: Need help in translating the following php code to perl a lot of links about CGI and web related stuffs Perl and CSS (boostrap perlcritic.css and other)
MOdern replace of SSI Re^3: A modern Perl repalcement for Apache Server Side Includes?
Re: Writing portable code writing portable code OS independent perl s‎crip‎t and Re: Command line arguments not passed in Win7 ( regqueryperl.bat ) and Question on Strawberry's Portable .bat file and also variables substitution in cmd.exe and Re^2: Dangerous Characters for system calls also relocate Perl 5.20. Also see the /D switch of cmd.exe that point here Portable win32 perl application without PAR::Packer where anonymous point explain portability of ActiveState Perl and here about win file system redirection 32 64bit madness
mar 2013 - About BEGIN blocks: Re: Returning information from BEGIN Re^3: BEGIN and compile-time Never lock $0 inside of a BEGIN block Re: Perl templating/macro creating using 'BEGIN'... Re: BEGIN block and prototyped subroutines Re: BEGIN vs initialization __DATA__ used in BEGIN and Is this BEGIN construct supposed to work? and about UNITCHECK in my check modules used by a s‎crip‎t and their version
Re: console adventure game to html mod_perl version about gaming
Using the DATA file handle for ARGV DATA, ARGV and typglob trick very well written intro and the recent Why does Perl have typeglobs? and not useful but intersting magic used by $^T in this post. tye explain that * is the sygil for FH Re: Why don't file handles have sigils? (*) Removing CODE slot in typeglob symbol table by dada (italian) ysth about symbol table the same doubt i had page 130 typeglob/symbolic reference question perl-iterate-over-a-typeglob pad walker example symbol table manipulation Perl Internals - references and symbol table get the list of methods and variables in a package Devel::Symdump and symbol table woes Dominus about scope my question about symbol table, typeglob.. where Lanx point to dumping lexical filehandles
Perl White Magic and one liners and A gentle introduction about Perl command line flag and a column by Merlyn at stonehenge and which oneliners monks use

perl idioms

stolen from busunsl's homenode
  • 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);

some cool use of Perl

Log In?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2015-03-29 16:48 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (631 votes), past polls