in reply to Re: count frequency of occurence....
in thread count frequency of occurence....

He's drawn the short straw. He calms himself, takes a deep breath and walks up to the mark.

Ok, what's the pp and the ;; all about?

Replies are listed 'Best First'.
Re^3: count frequency of occurence....
by BrowserUk (Patriarch) on Nov 03, 2009 at 08:39 UTC

    pp is an export of Data::Dump. Much like Dumper from Data::Dumper, but with better formatting.

    The double semicolons are simply a device I use in my REPL to indicate that the input should be evaluated now. It allows me to enter multiple statements and multi-line snippets and have them executed as a single snippet:

    [0] Perl> for my $i ( 1 .. 10 ) { print $i; if( ( $i % 2 ) == 0 ) { print "$i is even"; } };; 1 2 2 is even 3 4 4 is even 5 6 6 is even 7 8 8 is even 9 10 10 is even [0] Perl>

    Thereby allowing me to try out more extensive pieces of code without having to stick it all on one line.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re^3: count frequency of occurence....
by davido (Cardinal) on Nov 03, 2009 at 08:22 UTC

    I must have drawn the longer straw, but I'm still curious. I even glanced over the latest perldocs to see if maybe I missed something recent. Perhaps I still have, but didn't find what I was looking for on first run-through of the docs.


    Dave