Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Problems printing contents of array

by sapnac (Beadle)
on Jul 07, 2005 at 15:26 UTC ( #473124=note: print w/replies, xml ) Need Help??


in reply to Problems printing contents of array

my @s340Strings = qw("abc", "cdef","yxx","zzz"); print "@s340Strings\n"; prints: "abc", "cdef","yxx","zzz"
Check your code. Please check if the array is a array of scalars or array of scalars and references. try hard-coding for test purpose the array value and see if you get past this line. That would mean the data is the culprit.

Hope it helps
Thanks!
Sapna

Replies are listed 'Best First'.
Re^2: Problems printing contents of array
by mrborisguy (Hermit) on Jul 07, 2005 at 16:16 UTC

    That code is correct, but very confusing. You create a two element array, $s340Strings[0] == "\"abc\"," and $s340Strings[1] == "\"cdef\",\"yxx\",\"zzz\"". That may be what you intended, but when I read it, it looks like you intend:

    my @s340Strings = qw(abc cdef yxx zzz); # or my @s340Strings = ("abc","cdef","yxx","zzz");

    Just trying to clarify...

        -Bryan

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2020-11-27 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?