What is the difference between string $dxyabcand string definitions ${dxyabc}in Perl?
$dxyabc
${dxyabc}
Well, it depends on the context. For instance,
$foo = "$dxyabcdef"; $bar = "${dxyabc}def";
$foowill have a value $dxyabcdefinstead $dxyabc, added with def, this value $bar.
$foo
$dxyabcdef
def
$bar
Otherwise, as far as I know, they are the same.
perldoc perldata explains why curls are used in the context of scalar variables:
perldoc perldata
, - ( ). , , :$who = "Larry"; print PASSWD "${who}::0:0:Superuser:/:/bin/perl\n"; print "We use ${who}speak when ${who} here.\n"; Perl $whospeak, a $who::0 $who's. $0 $s () who.
, - ( ). , , :
$who = "Larry"; print PASSWD "${who}::0:0:Superuser:/:/bin/perl\n"; print "We use ${who}speak when ${who} here.\n";
Perl $whospeak, a $who::0 $who's. $0 $s () who.
$whospeak
$who::0
$who's
$0
$s
who
, , $dxyabc ${dxyabc}. , "$dxyabc_" "${dxyabc}_"
"$dxyabc_"
"${dxyabc}_"
No, curly braces are a separator around a variable name.
Source: https://habr.com/ru/post/1537734/More articles:Doesn't work Translation with the environment in Yii2 - phpUsing SuppressKeyPress event to block KeyUp event - c #ΠΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΠ΅ ActiveJDBC Ρ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΈΠΌΠΈ ΠΏΠΎΡΠΎΠΊΠ°ΠΌΠΈ - javaDiscrete Probability Distribution in Matlab - probabilityΠΡΡΠΈΡΠ»Π΅Π½ΠΈΠ΅ ΠΌΠΈΠ½ΠΈΠΌΠ°Π»ΡΠ½ΠΎΠ³ΠΎ ΡΠ°Π·ΡΠ΅Π·Π° Π³ΡΠ°ΡΠΈΠΊΠ° Π±Π΅Π· ΠΎΠ±ΡΠ°ΡΠ½ΡΡ ΠΊΡΠ°Π΅Π² - algorithmΠΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΠ° ΠΈΠ·ΠΎΠ±ΡΠ°ΠΆΠ΅Π½ΠΈΠΉ Picasso - Π½ΠΈΠ·ΠΊΠΎΠ΅ ΠΊΠ°ΡΠ΅ΡΡΠ²ΠΎ, ΡΠΎΡ ΡΠ°Π½ΡΡ ΡΠΎΠΎΡΠ½ΠΎΡΠ΅Π½ΠΈΠ΅ ΡΡΠΎΡΠΎΠ½ ΠΈ ΡΠ°Π·ΠΌΠ΅ΡΡ ΠΈΠ·ΠΎΠ±ΡΠ°ΠΆΠ΅Π½ΠΈΡ - androidAngularjs with restangular: wrong PUT url - javascriptOperation Order for Jinja2 Filters? - pythonHow to set two local variables with the same value in sql server? - variablesActivating a class using only a private constructor from another class in groovy - javaAll Articles