Rapunzel has asked for the wisdom of the Perl Monks concerning the following question:
My second code isFUNC("test",$flag); sub FUNC{ print $_[0] if ($_[1]); }
I have this kind of code 4-5 times in my script. I am confused here which one to use considering above parameters. Please help. Also it would be nice if somebody can explain how to calculate this parameters. Also, if there is any more parameter to decide which one to use please mention. ThanksFunc("test") if $flag); sub FUNC{ print $_[0];}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to select the code on basis of memory usage and execution time.
by GrandFather (Saint) on Nov 04, 2008 at 05:54 UTC | |
|
Re: How to select the code on basis of memory usage and execution time.
by chromatic (Archbishop) on Nov 04, 2008 at 07:44 UTC | |
|
Re: How to select the code on basis of memory usage and execution time.
by CountZero (Bishop) on Nov 04, 2008 at 07:20 UTC | |
|
Re: How to select the code on basis of memory usage and execution time.
by JavaFan (Canon) on Nov 04, 2008 at 11:46 UTC | |
by wol (Hermit) on Nov 05, 2008 at 15:53 UTC |