Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Argument "" Isn't numeric in numeric eq (==)

by AnomalousMonk (Archbishop)
on Feb 10, 2014 at 12:30 UTC ( [id://1074234]=note: print w/replies, xml ) Need Help??


in reply to Re: Argument "" Isn't numeric in numeric eq (==)
in thread Argument "" Isn't numeric in numeric eq (==)

I agree that ler224's OP is no more than a hint of a suggestion of a specification, but the only way I can see to get an array containing empty strings from something like  1,1,,,, is if it's a string  '1,1,,,,' that's been subjected to some kind of split operation. If  1,1,,,, is a list literal, all those commas flatten to nothing.

c:\@Work\Perl\monks>perl -wMstrict -MData::Dump -le "my @ra = ([1,1], [1,1,,,,], [1,1,,,,,,,,,,,,]); dd \@ra; " [[1, 1], [1, 1], [1, 1]]

Replies are listed 'Best First'.
Re^3: Argument "" Isn't numeric in numeric eq (==)
by kcott (Archbishop) on Feb 11, 2014 at 04:52 UTC

    While I don't disagree with you, I think we could guess at the data structure and missing code until the cows come home and still get it wrong.

    My intent was really just meant to provide an idea of how the task might be tackled:

    "Here's a technique ... you can probably modify it ..."

    [I also note that it's more than a day and half since the OP was posted and, despite a number of replies raising issues with it, ler224 has provided no clarification whatsoever.]

    -- Ken

      I also saw that the only reply by ler224 was to CountZero's first reply and only very shortly after the timestamp of the OP — and it did not address the pertinent part of the Count's suggestion! Not the sort of engagement one hopes to see.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-23 21:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found