in reply to Best way to pass variables?

While this only works for 'binary' cases, I like: $response = $ARGV[0]=~/foo/?'hello':'huh'; And you can nest ternaries or use if modifiers.