You can get help on basic PDL operations by entering the PDL shell (install 
PDL, then say "pdl" or "perldl" to the command line if you are running under a 
POSIX system like Linux or MacOS).  From the hell you can say "?" or "help" to 
get help about the system.  "?rcols" will give you help about rcols.

You can say 

  $a = rcols("myfile.txt",[0..5]);

to read in six columns of numeric values from myfile.txt. Rows that start with 
a '#' are automatically ignored.


On Nov 13, 2013, at 9:29 AM, POIRIER Regis <[email protected]> wrote:

> Thanks for your answer. Therefore I have taken a look on website but for me 
> it's hard. 
> I don't know how to use rcols.
> 
> Thanks
> 
> 
> -----Original Message-----
> From: Chris Marshall [mailto:[email protected]] 
> Sent: mercredi 13 novembre 2013 14:07
> To: POIRIER Regis
> Cc: [email protected]
> Subject: Re: [Perldl] Memory overflow
> 
> rcols might be appropriate for your problem.
> 
> See http://pdl.perl.org for more information on PDL.
> 
> The PDL Book has some good coverage on what can be done with PDL.
> 
> -chm
> 
> On Wed, Nov 13, 2013 at 3:16 AM, POIRIER Regis <[email protected]> wrote:
>> Dear all
>> 
>> I'm dummy in perl.
>> 
>> I would like to load a two dimensional table with a scalar table (this table 
>> contain split string line by line ) from a file.
>> 
>> It's working with this way but it's take lot of memory and it's stop with 
>> memory overflow.
>> 
>> I would like to use (DBM or PDL module instead but I'm not convenient 
>> with that.)
>> 
>> $vector_table[$stringlength][$vectors+1]=0;
>> $int=0;$int1=0;
>> my @indexed_vector;
>> 
>>                while ($int != $customvector)
>>                 {
>>                        @indexed_vector=split(//,@AVCOUT[$int]);
>>                        $int1=0;
>>                        while ($int1 != $stringlength)          {
>>                                 $vector_table[$int1][$int] = 
>> (@indexed_vector[$int1]);
>>                                $int1++;}
>>                $int++; }
>> Best regards
> 
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
> 


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to