D
David Filmer
I have a program with this line of code:
use if( $Config{'osname'} =~ /Win/ ), 'Win32:rocess::Info';
Perl complains:
Too few arguments to `use if' (some code returning an empty list in list context?) at ...
However, if I change the regex operator to !~ then Perl is quite happy (the only change is replacing the equals with a bang).
Does anyone know why Perl is unhappy with =~ in my "use if" statement
thanks!
use if( $Config{'osname'} =~ /Win/ ), 'Win32:rocess::Info';
Perl complains:
Too few arguments to `use if' (some code returning an empty list in list context?) at ...
However, if I change the regex operator to !~ then Perl is quite happy (the only change is replacing the equals with a bang).
Does anyone know why Perl is unhappy with =~ in my "use if" statement
thanks!