in reply to Best Data Structure for passing in multiple arguments to a sub-routine
Something like this:
make_slide( { title => 'Introduction to Slide Making', type => 'elemental', elements => [ { type => 'pic', path => '...', ... }, { type => 'text box', text => '...' }, ], } );
In particular, I frequently use type coded sub hashes and if test on their types to control how the other args are treated.
Phil
|
|---|