in reply to Re: Finding the right initialization-file module
in thread Finding the right initialization-file module

Many thanks! That looks like just the ticket.
  • Comment on Re^2: Finding the right initialization-file module

Replies are listed 'Best First'.
Re^3: Finding the right initialization-file module
by GrandFather (Saint) on Dec 13, 2011 at 21:40 UTC

    Of course given that $stuff is an object we can squeeze a little more juice out:

    ... $stuff->header(); $fn->($stuff) if $fn; sub header { my ($self) = @_; print <<HEADER; $self->{flamencoArgs}{spec}{PAGE_HEADING} $self->{flamencoArgs}{spec}{PAGE_TITLE} HEADER } sub eat_AvionicsFMEA { my ($self) = @_; print "hiliteCols are: @{$self->{topArgs}{hiliteCol}}\n"; }

    Prints:

    SABER Software Requirements Oct Release SABER Requirements hiliteCols are: 1 3 4 5
    True laziness is hard work