There is no difference, as far as perl is concerned, this is often a useful construct (albeit without the ' ' characters) which allows variables to be interpolated in strings next to other [A-Za-z_] characters:
$varname = 'poke'; print "${varname}mon\n";
Will output:
pokemonwhile you could not have said:
print "$varnamemon\n";as there is no such variable. You could avoid this by using . instead, but you'll see instances of the construct above.
In reply to Re: DIFFERENCE BETWEEN VARIABLE
by quidity
in thread DIFFERENCE BETWEEN VARIABLE
by iguane
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |