Hai
how can I assign directory path to a variable in perl
Thanks&Regards
kiran
Hai
how can I assign directory path to a variable in perl
Thanks&Regards
kiran
As you would any other variable assignment:
my $directory_path = "/path/to/file";
or
my $directory_path = '/path/to/file';
no
here I don't have directory path actually but I have argument like
ex:
system("sh abc.sh $Calibre_Output")
Calibre_Output have the directory path
Thanks
kiran
Just set the value of your variable to value you want it to be before calling the shell script:
my $Calibre_Output = '/path/to/file';
system("sh abc.sh $Calibre_Output")