in reply to Error while running PERL in windows

It appears that you are trying to run the command 'bpimagelist -A -media -hoursago', and parse the output.

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.