Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
We need more details for a good answer, e.g. you didn't show us your set() routine.
From the example demonstrated I'd say use $par{margin} and set it to the users input, like -horizontal another approach is to grep a list of parameters, and take the first positive ($actual) = grep { $par{$_} ne "a" } qw/margin-left margin-horizontal margin/ (that's actually better done with first from List::Util )
Cheers Rolf
updatedebugger-demo with perl -de0
updateIf you need to do it for different head-parameters like "padding" and so on, try
and let $head loop over "margin", "padding", a.s.o. In reply to Re: Deferring variables
by LanX
|
|