I have a block of statements that need to be executed everytime in my code,but when a command line option,say "c" is passed,this block of statements need to be executed based on an "if" condition,is there a way I can achieve this without doing "if else"?
if (grep( /$number/, @list))# this if should come into the picture onl +y when command line option c is given, { #Block of statements... }
In reply to Executing data based on command line arguments by iphone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |