Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Perl script for the post processing of one CSV file

by BillKSmith (Monsignor)
on Oct 04, 2019 at 14:25 UTC ( [id://11107043]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl script for the post processing of one CSV file
in thread Perl script for the post processing of one CSV file

the second "our @sums" inside the END block is not needed

Good point! I have often needed a second 'our' in a BEGIN block at the start of a file when using "-n". I never noticed that an END block at the end is included in the scope of the first 'our'. Note that if we change the single 'our' to 'my', the code still compiles without error. It fails to execute correctly due to life-time issues, not scope.

Bill
  • Comment on Re^3: Perl script for the post processing of one CSV file

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-18 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found