my @rows = split /\n/, $_;
Split what is found in the magic variable $_ on linefeed into the array @rows.
my $x = pop @rows;
"pop" the top element of the array @rows into scalar variable $x
is(scalar( @$result), $n_courses, "test $.: one room per course");
"is" is a function in the Test::More module (to build an automated test suite). It checks if the value of scalar( @$result) is equal to $n_courses.
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
In reply to Re: New functions?
by CountZero
in thread New functions?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |