I am unable to understand a part of Perl script which is executing an exe.
open(SYSTEM, "$appl 2>&1 |") || die "$!: $appl";
According to this I can understand that it is executing an exe (the variable $appl
stores the path of exe along with its args), but I do not understand the part 2>&1
. AFAIK it is not arg required by our exe, so it must be some standard convention. Any idea what that does?
PS: Our Perl is a bit old, hence the older syntax for open().