Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^6: XLSX read and dump

by tobyink (Abbot)
on Jan 18, 2012 at 21:30 UTC ( #948625=note: print w/ replies, xml ) Need Help??


in reply to Re^5: XLSX read and dump
in thread XLSX read and dump

Next, I'm not sure

my $excel = Spreadsheet::XLSX -> new ('test.xlsx');

is correct.

It's not a common way of laying out code, but adding arbitrary whitespace between tokens in Perl is rarely disallowed. Whitespace is only really needed between tokens if they'd look like another token if the whitespace was missing.

For example, given:

use 5.010; my @foo = split /\|/, q {foo|bar|bar}; foreach my $x (@foo) { say $x; }

... there are only actually two pieces of required whitespace: between "use" and "5.010", and between "foreach" and "my". The code runs perfectly well if you strip out the rest of the whitespace:

use 5.010;my@foo=split/\|/,q{foo|bar|bar};foreach my$x(@foo){say$x}

... though most people would consider the former to be more readable.


Comment on Re^6: XLSX read and dump
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://948625]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-08-01 00:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (256 votes), past polls