I've got into the habit of using q{ ... } and qq{ ... } because it I work in both Unix/Linux and MS Windows environments. They mean I don't have to think about the quoting conventions of the o/s when writing one-liners,
That is the most (only) cogent argument I seen for this practice.
However, given that you have to think about whether to use -E' ... ' or -E" ... " in the first place, within that, choosing to use q[ ... ] or qq[ ... ] when appropriate doesn't seem so hard.
And limiting that use to just one-liners, less so.
In reply to Re^3: declare and init a scalar
by BrowserUk
in thread declare and init a scalar
by fionbarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |