in reply to Re^2: List of worksheets in an Excel workbook
in thread List of worksheets in an Excel workbook
Since $/ defaults to "\n", I use it in one-liners so I don't have to think about shell quoting issues (I use both Win32's cmd and bash regularly), and it looks like it's crept into my test scripts too. I would not use it as a newline in production code.
About the warning, my $current_sheet = $sheet->Name, $/ is parsed as
The comma operator in scalar context evaluates the left side, throws it away and returns the right side, a bare "$/". Look in perldiag for "Useless use of %s in void context".((my $current_sheet = $sheet->Name), $/);
|
|---|