in reply to Re: Perl interpretor for conditional operator "?"
in thread Perl interpretor for conditional operator "?"
Hello Dave, Thanks for detailed explanation. "The sixth line checks to see if $a is less than $b. It should output the content of @x" I'm newbie, as per my understanding here after expression evaluation @x will be assigned to $var in scalar context and print the no of elements in the array, however it is printing content of array.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl interpretor for conditional operator "?"
by Corion (Patriarch) on May 22, 2011 at 17:51 UTC | |
by yramesh.1981 (Initiate) on May 22, 2011 at 17:57 UTC |