in reply to passing a command line argument

s_gaurav1091I am baffled like how are we going to pass this variable

It might be necessary to mask "variables names" against beeing
evaluated by shell invocation, this is one case where it might
happen:
... my $PATH = "!please don't show this!"; my $command = 'echo test.sh'; my $args = "\\\$PATH is a name"; # try: "\$PATH is a name"; print "args: ", $args, "\n"; print "dummy: ", $PATH,"\n"; my $output = qx{ $command $args }; # use qx for backticks! print "\ncommand line echo: ", $output, "\n"; ...
If you don't mask the $PATH, the output will suprise you ;-)
(This has been said already but I tried to give a "hands on" example.)

Regards

mwa