in reply to what is the use of derefernce in substitution?
${var} and $var are the same thing in an interpolation. People use the first form if the next thing after it is an identifier:
say "${var}foo"; # interpolates $var, adds literal foo say "$varfoo"; # interpolates $varfoo
So in your case there's no reason to write it, but it seems the author deemed the form with curlies safer.
|
|---|