in reply to Re^2: creating Shell Script using Perl
in thread creating Shell Script using Perl

I am not really sure How to use interpolation in this function.

You should not. You have already thought of backslashes to mask the quote marks.

Also put backslashes before the $ sigil of variables that should only be in use in the final shell script.

Cheers, Sören

Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)

Replies are listed 'Best First'.
Re^4: creating Shell Script using Perl
by pratikmonu (Novice) on Sep 06, 2017 at 05:58 UTC
    perfect!! Worked for me.. Thanks, PR