note 74496 deleted from function.list by bjori
| From: | bjori@php.net | Date: | Sat, 14 Apr 2007 09:53:32 +0000 |
| Subject: | note 74496 deleted from function.list by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-125392@lists.php.net to get a copy of this message | ||
Note Submitter: el dot dodgero at gmail dot com
Reason: integrated
----
To Keith Tyler:
Sorry to have to disagree, but you're mixing your languages in your example there... you said:
"In Perl, you can put an array at the end of the list, and it will pick up all remaining
elements from the right hand of the assignment.
($val1,$val2,@others)=array("a","b","c","d","e")
will result in $val1="a", $val2="b", and
@others=("c","d","e")."
Again, all apologies, but what you wanted to say in your perl example was:
($val1, $val2, @others) = ('a', 'b', 'c', 'd',
'e');
Perl has no array() keyword at all, it has an at-sign instead.