recentpopularlog in

therobyouknow : array   44

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
PHP array_filter | When life and coding collide
useful (with no callback) for generating an array with only the checkboxes selected listed in the array
php  checkbox  form  array  filter  computing  web  dev  howto 
may 2014 by therobyouknow
Bash script, read file into array (Newbie)
while read line ; do
MYARRAY[$index]="$line"
index=$(($index+1))
done < $ips
array  file  howto  linux  load  read  reference  script  syntax  tip  bash  shell  bsh  loop  computing  work 
july 2010 by therobyouknow
perl split whitespace - LinuxQuestions.org
Clean up preceding and afterwards whitespace before splitting between whitespace delimited items, to avoid blank array elements.
perl  split  array  whitespace  prepare  cleanup  computing  work 
november 2009 by therobyouknow
Re: Assign a delimiter variable - nntp.perl.org
my $delimiter = "\\"; # for dos
my @pathComponents = split( /\Q$delimiter/, $pathAndFile );

The /\Q is so obscure. Yet another example of perl's obscurity; other languages would just accept the delimiter as parameter without that nonsense
assign  delimiter  variable  perl  split  howto  define  programming  computing  solution  array  string  convert  separate  separation  separator  character  obscure  bizarre  example  linenoise  difficult  nonsense  reference 
october 2009 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