Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: generating an array of array

by GrandFather (Saint)
on Sep 16, 2014 at 04:18 UTC ( [id://1100686]=note: print w/replies, xml ) Need Help??


in reply to generating an array of array

I strongly recommend you use use warnings which will give you some information about your problem even with a bollixed bang-splat line. Your first line should include a !, although if you are running on Windows that line is less important:

#!usr/bin/perl -w

With use warnings; (preferred technique) or the corrected bang-splat line above your script will generate something like:

Useless use of anonymous list ([]) in void context at noname.pl line 1 +0. Useless use of anonymous list ([]) in void context at noname.pl line 1 +0.

in addition to the $VAR1 dump.

Perl is the programming world's equivalent of English

Replies are listed 'Best First'.
Re^2: generating an array of array
by Marshall (Canon) on Sep 16, 2014 at 05:26 UTC
    I did bollix the she-bang line! No doubt about it. Under Windows, this doesn't matter. Under Unix, this matters a lot. The AofA works with formatting suggestions. I just screwed up with missing parens. Thanks, Marshall

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-19 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found