Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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.

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://805610]
[virtualsue]: I have 5 days left to finish my slides for LPW
[1nickt]: virtualsue Have you made them tea yet today? (And do you serve Digestives with it?)
[virtualsue]: Lotus biscuits
[Discipulus]: mornign nuns and monks!
[1nickt]: Woah you can get Krispy Kreme doughnut-Lotus Biscoff hybrids!
[1nickt]: Biscuit technology has evolved since I left the UK, obviously.
[virtualsue]: we have a jar of the spread: https://www. webapp/wcs/stores/ servlet/gb/ groceries/lotus- caram-spread- smooth-400g?langId =44&storeId=10151& krypto=VEjeoyIieB6 2oiiKUSbS %2Foxs9BpfJxZ95MW6 y6NOiYDYlKgl6SghbS BZf7CU5b6QA00pmYz7 XmfTYYKpoIiUivBBOR y6MI
[virtualsue]: yuk url Original- Caramelised-Spread -Smooth/dp/ B002LA793I

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2017-11-20 11:49 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (286 votes). Check out past polls.