Interestingly, this works fine from the perldl console, but in a scrip I get an error....
my $time = rcols "testdata.txt"; my $tsearch = $time -> dummy; print $tsearch,"\n";
produces:
[njs@localhost]$ ./testcode Use of uninitialized value in numeric lt (<) at /usr/lib64/perl5/site_ +perl/5.8.8/x86_64-linux-thread-multi/PDL/Core.pm line 936. Use of uninitialized value in numeric lt (<) at /usr/lib64/perl5/site_ +perl/5.8.8/x86_64-linux-thread-multi/PDL/Core.pm line 939. Use of uninitialized value in numeric gt (>) at /usr/lib64/perl5/site_ +perl/5.8.8/x86_64-linux-thread-multi/PDL/Core.pm line 942. Use of uninitialized value in repeat (x) at /usr/lib64/perl5/site_perl +/5.8.8/x86_64-linux-thread-multi/PDL/Core.pm line 942. Use of uninitialized value in subtraction (-) at /usr/lib64/perl5/site +_perl/5.8.8/x86_64-linux-thread-multi/PDL/Core.pm line 943. [ [ 50093.199] [ 50094.308] [ 50954.953] [ 51767.383] [ 51958.219] [ 52005.696] [ 52005.763] [ 52142.188] [ 52422.043] [ 52459.414] [ 52482.509] [ 52693.953] [ 52752.918] [ 52836.803] [ 52837.198] [ 53107.974] [ 53125.429] [ 53141.53] [ 53198.495] [ 53243.578] [ 53489.381] [ 53603.709] [ 53661.37] [ 53724.982] [ 53724.983] [ 53864.724] [ 53882.002] [ 53969.248] [ 54224.674] [ 54225.636] [ 54304.474] [ 54304.539] [ 54366.513] ]
Clearly the dummy is being inserted, so I'm a bit confused as to the uninitiated value errors??

In reply to Re^2: perl PDL question by nickschurch
in thread perl PDL question by nickschurch

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.