in reply to Re: Perl Data Language Question
in thread Perl Data Language Question

It would make for good hygiene/habits to initialize that way, but it's not mandatory (and probably won't make a difference in this case); the following works with no sweat:
use strict; use PDL; my $arref; while(<DATA>) { push @$arref, $_; } my $p = pdl($arref); print $p,$/; __DATA__ 1.0 2.2 3.1 4.0 5.5 10.0 20.0

Replies are listed 'Best First'.
Re: Re: Re: Perl Data Language Question
by belg4mit (Prior) on Apr 01, 2003 at 03:36 UTC
    Doh, yeah... so used to -w

    --
    I'm not belgian but I play one on TV.