santanudas
Technical User
Hi guys,
I was trying to execute some Unix commands from within perl but getting error; especially when the command itself got a single quote in it. Say e.g. if I want to pipe through sed like this:
I tried with backslash but didn't work. Any idea how to make it work? Any sort of help is very much appreciated. Thanks in advance.
I was trying to execute some Unix commands from within perl but getting error; especially when the command itself got a single quote in it. Say e.g. if I want to pipe through sed like this:
Code:
my $DIR = `pwd -PL | sed '\,^, s/.*\///'`;