thank you BrowserUk, as always you supply a clear specific answer for the non prof users. i have applied your suggestion
my $w = PDL::Graphics2D->new('PGPLOT');
and added also use PGPLOT;
and yes i can run all the code and display a window like this
http://img409.imageshack.us/img409/1384/erroriu.png
but with an error at the final line
"Can't locate object method "imag2d" via package "PDL" at err.pl line 13"
this is the same using windows xp and linux mint
i choose linux mint because it is super easy to install modules directly from their site. and indeed it is the first time i am using linux.
also i want to thank zentara for the second version of the "PDL 3d image cube" example in
www.perlmonks.org/?node_id=591731 it is working well rotate and zoom in and out with the mouse.
regards