in reply to Re^2: Fetching data from DB and complex data structures
in thread Fetching data from DB and complex data structures
$text->{$line}[$pos - 1] = $word; ^ ^ ^ | | | | hash | dereference array
I used $pos - 1 as positions start from 1, but array indices start from 0.
Note that the bracket types are the same as when creating the data:
$VAR1 = { 'c3' => [ 'Phasellus', 'non', 'erat' ], 'b2' => [ 'consectetuer', 'adipiscing', 'elit.' ], 'a1' => [ 'Lorem', 'ipsum', 'dolor', 'sit', 'amet,' ] };
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Fetching data from DB and complex data structures
by frasco (Beadle) on Dec 15, 2015 at 11:51 UTC | |
by choroba (Cardinal) on Dec 15, 2015 at 13:12 UTC | |
by frasco (Beadle) on Dec 15, 2015 at 13:58 UTC |