Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: array overhead

by Fletch (Bishop)
on Jan 05, 2011 at 21:51 UTC ( [id://880688]=note: print w/replies, xml ) Need Help??


in reply to Re: array overhead
in thread array overhead

If you use this make sure to choose a separator that won't appear in your data domain (because if you use "," and then start getting European-style formatted numbers with that as the decimal indicator rather than "." . . . ow; Perl will handle (say) a NUL ("\0") quite happily and you can be pretty sure it's not going to crop up in your inputs).

(Not that that may be an issue for the OP but it was something that came to mind from BrowserUk's choice of sample data :)

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^3: array overhead
by BrowserUk (Patriarch) on Jan 05, 2011 at 22:23 UTC
    ut it was something that came to mind from BrowserUk's choice of sample data :)

    My "choice of sample data" was simply a guess at approximating the sizes of the elements shown in the OP.

    In the unlikely event that the OPs data actually includes floating point values, and his systems are configured to use ',' as the floating point, and he is dumb enough to take the commas in my string as a recommendation of a separator, completely missing the conflict that arises from doing so, then he will discover his error the first time he runs his program.

    And unless he is silly enough to make that first run a production run on a system in a hospital, or a nuclear power plant, or an aircraft--does anyone use Perl in critical systems?--then there will almost certainly be no harm done.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-03-19 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found