in reply to RFC: Self Assessment Perl

Hello LanX

the list is nice, but I have some note.

I will add, at the end:

Then, at least for me, an example looks too much edge case, or due to familiarity with other languages (desease I'm immune to, but can be useful for others having other experience): $h = {%h} personally I never seen used this way and I'd stress the standard form to take reference as in \%h and ( UPDATE after a glass of beer I now see the sense of the question about anonymous datastructure and a reference).Here i'll ask also about \(a..z) syntax.

There is nothing about regexes:you can at least ask how to make regexes more readable.

Core modules are important to know: they would deserve a long section with many named, but at least you can ask:

> So, do you know Perl?

So and so, but I know where to read and where to ask!

L*

UPDATE

> Unfortunately it's a very stubborn windows context..

I know this, but you can tempt them: This happened 5000 seconds ago, ie? perl -e "print scalar localtime (time - 5000)" or with mass editing or with -lne

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: RFC: Self Assessment Perl -- special variables
by SuicideJunkie (Vicar) on Sep 05, 2018 at 21:22 UTC
    $h = {%h} personally I never seen used this way and I'd stress the standard form to take reference as in \%h
    They do different things; as the {%h} will get you a reference to a shallow copy of the hash, not just a reference to the original.
    >perl -e "my %h = (1,2); my $g = {%h}; $g->{1}=3; print $h{1} . ' vs ' + . $g->{1};" 2 vs 3
    I see you've spotted that in the update tho.
Re^2: RFC: Self Assessment Perl -- special variables
by LanX (Saint) on Sep 05, 2018 at 21:41 UTC
    > Special variables

    Almost all special variables are very edge case. They can look them up, provided they understand perldoc.

    I was concentrating on essential concepts which are misunderstood or ignored, like "flattening".

    This is not meant to be a tutorial *, people should rather realize where the gaps in their knowledge are.

    You can't explain things to people who don't really listen because they think they know it already.

    > regex ... map/grep/sort

    my colleagues are capable to write millions of LOC without any regex° or map/grep/sort

    This should probably be on a secondary list, I didn't want to risk that they depreciate the fist list. (hope you know what I mean)

    > $h = {%h} personally I never seen used this way and I'd stress the standard form to take reference as in \%h

    Seems like someone misunderstood flattening.... ;-P

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

    *) though it could link into a tutorial or training.

    °) well they sometimes use "cargo cult" regexes, i.e. C&P without understanding.

    update

    That's very a good idea

    • Core modules
      Name some standard modules/pragmas you use and explain what for.

    they are confronted with CORE, the concept of module installation and can interact with each other.