| 1, Jet (??), 13:46, 24/04/2008 [ответить]
| +/– | |
If you use a double-quoted string, Perl will insert the value of any scalar variables you name in the string. This is often useful to fill in strings on the fly:
use feature ':5.10';
my $apple_count = 5;
my $count_report = "There are $apple_count apples.";
say "The report is: $count_report\n";
The final output from this code is The report is: There are 5 apples..
Ну и где тут новизна???
| | |
| 2, Jet (??), 13:49, 24/04/2008 [ответить]
| +/– |
Это статья не про новые конструкции перл 5.10, а статья
"A Beginner's Introduction to Perl 5.10"
"Введение в перл для самых маленьких, на примере перла 5.10"
| | |
| 4, Аноним (-), 23:10, 27/01/2009 [ответить]
| +/– |
say "The report is: $count_report\n";
# парни, а зачем \n в конце строки?? Нет, оно понятно зачем, но say добавляет автоматом.
| | |
|