recentpopularlog in

therobyouknow : loop   12

PHP: Generators overview - Manual
From my own experience this has similarities with LISP
php  generator  programming  dev  computing  iterator  collections  array  loop  looping  memory 
june 2015 by therobyouknow
Bash script, read file into array (Newbie)
while read line ; do
done < $ips
array  file  howto  linux  load  read  reference  script  syntax  tip  bash  shell  bsh  loop  computing  work 
july 2010 by therobyouknow
Print an array one element per line, with line numbering - Perl Circus - Perl Tricks, Tips And Traps.
in a foreach (@array), $_ *refers* to the element being looked at in an iteration. writing to $_ modifies the element in the original array - update in-place. This enables efficiency if passing the array around for stages of processing, rather than working with copies - and also ensures that the original data is updated (if that's what is required)
programming  tutorial  perl  inspiration  array  $_  in-place  inplace  update  within  loop  foreach  reference  efficiency  efficient  howto  computing  work  language  tip  iterate  alias  element  modify  original 
september 2009 by therobyouknow

Copy this bookmark:

to read