Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: How does this code work? (from "Perl is Unix")

by Aristotle (Chancellor)
on Nov 07, 2009 at 03:18 UTC ( #805610=note: print w/ replies, xml ) Need Help??


in reply to Re: How does this code work? (from "Perl is Unix")
in thread How does this code work? (from "Perl is Unix")

I didnít aim for clarity in that bit. I wanted to waste the least space possible on code to perform this function, because I was contrasting with Ruby and Python examples, where there is no need to write any code for this because both languages include strip methods in their built in String classes.

Maybe I should lobby for the inclusion of a strip function in Scalar::Util. (It could even be written in XS, and therefore go faster than regexes. Hmm. Thereís a thought.)

Makeshifts last the longest.


Comment on Re^2: How does this code work? (from "Perl is Unix")
Select or Download Code
Re^3: How does this code work? (from "Perl is Unix")
by Anonymous Monk on Nov 07, 2009 at 09:03 UTC
    Is it just me or does the whole bunch of Utils modules seem very haphazard, from namespace choices to grouping

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2014-09-23 01:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls