Yes, this fixes the problem

exec ($cmd) or die "Could not exec (" . $? . ", " . $! . ")\n";

 Xavier

On 5/4/07, Vanuxem Grégory <[EMAIL PROTECTED]> wrote:
Hello,

Quickly, sorry I'm totally busy, but if I'm remember correctly this
comes from the fact that PDL exports functions like 'or' or 'and'.
Adding parenthesis fixes theses type of things. Don't know who to blame,
a Perl specialist could give some insight here.

Greg

Le lundi 23 avril 2007 à 17:22 -0400, Erasmus Oblar a écrit :
> I've run into an odd problem that seems to involve PDL, I was hoping
> someone on the list could give me a hand.
>
> this script:
>
> #!/usr/bin/perl -w
> my $cmd ="echo hello";
> exec $cmd or die "Could not exec (" . $? . ", " . $! . ")\n";
>
> works as expected (prints hello), but if I insert:
> use PDL;
> after the first line, I get the following error:
> Could not exec (0, Illegal seek)
>
>
> This happens on both x86_64 and i386, and with PDL version 2.4.3 and
> 2.3.4, perl 5.8.
> Any thoughts as to what might cause this?
> Thanks,
> eo
>
>
> _______________________________________________
> 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


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

Reply via email to