do_something() if <condition>;
if (<condition>) { do_something(); }
Equivalent:
m[regex]
m|regex|
m/regex/
/regex/
Equivalent:
"string-with-expanded-$variables"
qq[string-with-expanded-$variables]
qq/string-with-expanded-$variables/
Using qq// is common on command lines, since the shell itself may require quotes or double-quotes.
Equivalent:
'string-expanding-no-variables'
q[string-expanding-no-variables]
q/string-expanding-no-variables/
All of this can be found in perldoc perlsyn and perldoc perlop.
-- [ e d @ h a l l e y . c c ]
|