I'm a beginner at Perl. I'm not understanding the following code snippet.
my @savedFiles;
my $cmd = 'su - dbinst -c "ls <some_path>$tag* | sort -r"';
@savedFiles = `$cmd`;
What's going on when the array is being assigned a command-line statement? I tried it in my perl6 shell and it gave me the following error.
===SORRY!=== Error while compiling:
Missing required term after infix
------> @savedFiles[0] =⏏ `$cmd`
expecting any of:
prefix
term