Mahurshi Akilla wrote:
I am trying to read a csv file into a 2D array matrix
I am having a hard time trying to get the array returned by split
function to "attach" to a 2D array.
See the code below for further info on what I'm trying to do
## initialize
$row = 0;
$col = 0;
## go thru eac
Mahurshi Akilla wrote:
I am trying to read a csv file into a 2D array matrix
I am having a hard time trying to get the array returned by split
function to "attach" to a 2D array.
See the code below for further info on what I'm trying to do
## initialize
$row = 0;
$col = 0;
## go thru eac
I am trying to read a csv file into a 2D array matrix
I am having a hard time trying to get the array returned by split
function to "attach" to a 2D array.
See the code below for further info on what I'm trying to do
## initialize
$row = 0;
$col = 0;
## go thru each line of file
while () {
hi group
well, i ve gotta file that doesnt ve uniform structure. i wud like to extract the
values by using the key.
Ex
name xxx
Ed.q yyy
Add zzz bbb
aaa ccc
bbb ddd
in this ex, i want to extract the name and the address, if i use /t then i can ext
On Sat, Feb 16, 2002 at 11:20:42AM -0500, Ian P. Thomas wrote:
> If I read this correctly, I takes the first array from
> unchecked_dfa_states and passes it out, but not before dereferencing
> it. I needed something that could take the first array as a whole
> object and pass it to check
$#unchecked_dfa_states > 0 )
>
> The typical idiom is:
>
> while (@unchecked_dfa_states)
>
>> {
>> # I remove the first array and add it to another 2-D array. Syntax
>> may be wrong.
>> @checked_dfa_state = shift( [ $unchecked_dfa_state[ 0 ] );
>
> shift
ers.
> push @unchecked_dfa_states, [ dfa_state_creation( $nfa_start_state, $epsilon ) ];
> # I want it to loop until this array is empty.
> while ( $#unchecked_dfa_states > 0 )
The typical idiom is:
while (@unchecked_dfa_states)
> {
> # I remove the first array and add it to anothe
want it to loop until this array is empty.
while ( $#unchecked_dfa_states > 0 )
{
# I remove the first array and add it to another 2-D array. Syntax
may be wrong.
@checked_dfa_state = shift( [ $unchecked_dfa_state[ 0 ] );
# alphabet is an array of symbols( letters
Hi,
I'm stuck with a bit of a nasty problem. I have a perl sub that returns a 2D
array, but now I need to impliment this sub inside of a C program.
Unfortunatly, just about all the documentation talks about returning numbers to
C, I haven't been able to find anything on strings or 1D arrays, le