Hi All, I am trying to call IDL program through perl as following: open(IDL,"|/opt/harris/envi5.4.0/envi54/idl86/bin/idl")|| die "Can't open IDL: $!"; print IDL ".Compile classify \n"; print IDL "classify \n"; close(IDL); This code works well when there is no ENVI library function in IDL program, but does not work when there is a ENVI function (like ENVITASK) in IDL program. The error shows: Variable is undefined: ENVITASK. Could you please tell me how to fix this problem when perl call IDL programs with ENVI function? Many thanks in advance. Ellen
|