This is what i am running and getting the below mentioned error.my @MEDIA; for (C:\Program Files\Veritas\Netbackup\bin\admincmd>bpimagelist -A -m +edia -hoursago 24>) {s/\|/ /; my ($Image) = split; for (C:\Program Files\Veritas\Netbackup\bin\admincmd>nbemmcmd -listmed +ia -mediaid $Image>) {next unless m/Media ID|Data Expiration/i; push @Media, $_;} }
Can you please help me.C:\perlscripts>perl Test.pl Backslash found where operator expected at Test.pl line 2, near "Verit +as\" Backslash found where operator expected at Test.pl line 2, near "NetBa +ckup\" Backslash found where operator expected at Test.pl line 2, near "bin\" Backslash found where operator expected at Test.pl line 2, near "admin +cmd\" Warning: Use of "-A" without parentheses is ambiguous at Test.pl line +2. Number found where operator expected at Test.pl line 2, near "hoursago + 24" (Do you need to predeclare hoursago?) Backslash found where operator expected at Test.pl line 5, near "Verit +as\" Backslash found where operator expected at Test.pl line 5, near "NetBa +ckup\" Backslash found where operator expected at Test.pl line 5, near "bin\" Backslash found where operator expected at Test.pl line 5, near "admin +cmd\" syntax error at Test.pl line 2, near "C:" syntax error at Test.pl line 5, near "for " syntax error at Test.pl line 9, near "}" syntax error at Test.pl line 17, near "}" Execution of Test.pl aborted due to compilation errors.
In reply to Re^4: Run Perl script in windows
by mpatel1516
in thread Run Perl script in windows
by mpatel1516
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |