in reply to Replace data inside GD::Graph::Data object

Comming from a file, csv or not, undef is just another text string, unlike in perl code where undef has a specific meaning to the compiler

  • Comment on Re: Replace data inside GD::Graph::Data object

Replies are listed 'Best First'.
Re^2: Replace data inside GD::Graph::Data object
by taiq_m (Acolyte) on Mar 14, 2017 at 02:27 UTC

    thanks huck - i kind of got it, question is how do i replace it ? can I access the data with in the Graph:Data object ?

      figured out, it works

      foreach my $arr (@$data) { @$arr = map {$_ eq "undef" ? undef : $_ } @$arr; }