You need the single quotes inside the double quotes because the stuff inside the double quotes must be valid Perl code. If your module or script has use strict, [a,b,{perl=>monk}] is not a valid expression. But ['a','b',{perl=>'monk'}] and ['a','b',{'perl'=>'monk'}] are.
Best, beth
In reply to Re: How to make array references from scalar value
by ELISHEVA
in thread How to make array references from scalar value
by santhosh_89
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |