[Gllug] re: OSS CMSs

Bruce Richardson itsbruce at uklinux.net
Fri Apr 29 15:08:36 UTC 2005


On Fri, Apr 29, 2005 at 04:00:58PM +0100, Rev wrote:
> A good example is push: http://www.perlfunc.org/function.php?name=push
> 
> The example given:
>     for $value (LIST) {
>     	$ARRAY[++$#ARRAY] = $value;
>     	}
> 
> When I, and surely anyone sane, would write this:
>     foreach $value (LIST) {
>     	push(@ARRAY, $value)
>     	}
> 
> Or maybe I'm missing something?

You are missing the bit where it says "push has the same effect as...".
Did you really want the documentation to say "push has the same effect
as push"?

-- 
Bruce

If the universe were simple enough to be understood, we would be too
simple to understand it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20050429/7ade0ec5/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list