in reply to Re: Error while running PERL in windows
in thread Error while running PERL in windows

Or just:

for my $line ( `C:/Program Files/Veritas/Netbackup/bin/admincmd/bpimag +elist -A -media -hoursago 24` ) { ... };

Which is simpler, and works. Note also:

  1. The change from '>' to '/' between the last element of the path and the command name.
  2. the absence of the '>' at the end of the command.

Both of which are left-overs from his attempt to convert his original qx<> delimited unix command lines to windows equivalents.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.