B::Deparse shows how perl interprets this code:
The curlies are allowed, but not required. I think is is more usual to use curlies only when referring to a variable, not when declaring it.perl -MO=Deparse -e 'my ${host_mail}="80.80.80.80";' my $host_mail = '80.80.80.80'; -e syntax OK
In reply to Re: Curly braces variable
by toolic
in thread Curly braces variable
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |