I`m trying to executo Perl script from python script, but it seems like it has not been executed! using this command in python:
os.popen('dump_hash.pl {}'.format(scn_filepath))
this is the dump_hash.pl script:
$path = <STDIN>;
require "$path";
open (OUTFILE, "+>dumpered_hash");
print OUTFILE Dumper("\%...");
close (OUTFILE);
and the script stucks when trying to open 'dumpered_hash' as readable file. and when I run ls command in shell, the directory doesn`t have dumpered_hash file.
thanks you.
subprocess.call('perl dump_hash.pl')using thesubprocesspython module?#!line to the beginning of the .pl file otherwise your OS has little reason to guess it's Perl.