http://www.perlmonks.org?node_id=549210


in reply to Small examples of string eval

I have several scripts that take numeric arguments from the command line where is is extremely useful to be able to enter expressions instead of simple values.

#! perl -slw use strict; our $LIMIT = eval $LIMIT || 'somedefault';

This way I can specify

script -LIMIT=2**33 or script -LIMIT=8*1024**3

Which beats the crap out of trying to remember

script -LIMIT=8589934592

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.