in reply to Organizing your program with subroutines (was Re: help with user selected hash operations?)
in thread help with user selected hash operations?

golly, this is a whole lot. i'll look it over more in-depth when i get home from uni. we've only just started going over subroutines today, actually, so i'm sure this will help me out, haha.

hopefully your coffee woke you up! :) thank you for this!

  • Comment on Re: Organizing your program with subroutines (was Re: help with user selected hash operations?)

Replies are listed 'Best First'.
Re^2: Organizing your program with subroutines -- ellipsis statement
by Discipulus (Canon) on Oct 30, 2017 at 21:00 UTC
    he he lunette

    you asked for wisdom and you got it back! ++roboticus for his tutorial/manual.

    Just a minor addition: ellipsis statement described in perlsyn does exactly what sub sub_name { die "NYI" } does: sub sub_name{...} dies with Unimplemented at .. if sub_name is called within the program.

    It is easy to remember and to spot and also saves some keystroke!

    My warmest welcome to the monastery and to the wonderful world of Perl!

    PS for sake of indentation perltidy program which comes within Perl::Tidy module can change your old dinosaur into a cute hamster (incidentally: Perl is taught in university? cool..)!

    L*

    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.

      Discipulus:

      Cool! I'll have to remember that one in the future.

      ...roboticus

      When your only tool is a hammer, all problems look like your thumb.