أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
1. You win $var dollar
2. You win $1 dollar
3. You win1 dollar
4. You win0 dollar
In Perl when the print statement is using a single quote (') instead of a double quote (") Perl prints the exact characters. This means even if $var is a variable it will not be treated as one because Perl is printing the actual dollar sign. If you wanted to print the variable, so it shows how many dollars have been won you would type: "You win $var dollars"; as the command.
You win $var dollar, whatever variable value is.