in reply to Error while running PERL in windows
You need to first "quote" the string, and then understand how perl handles the "\" (backslash) character, which has a special meaning inside a double-quoted string.
It is very difficult to determine what you are attempting, because you have not used <code> tags., but here is a guess at at one way to achieve what your first command is trying:
my @MEDIA; chdir 'C:\Program Files\Veritas\Netbackup\bin\admincmd\'; for ( qx{bpimagelist -A -media -hoursago 24} ){ s/\|/ /; my ($Image) = split; }
This is not an optical illusion, it just looks like one.
|
|---|