Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Entering the land of Perl

by manbroski (Initiate)
on Apr 04, 2013 at 21:51 UTC ( [id://1027038]=note: print w/replies, xml ) Need Help??


in reply to Re: Entering the land of Perl
in thread Entering the land of Perl

That, sir, is a beauty.

Anything functional (in the map-reduce sense) makes me quite happy. You have my thanks.

EDIT: what version is this? 5.16 'use strict' returns all zeros for each count. Does that provide the function return code?

Replies are listed 'Best First'.
Re^3: Entering the land of Perl
by choroba (Cardinal) on Apr 05, 2013 at 06:06 UTC
    The shift requires the string as an argument of the script. If you want to read it from a file, you have to use
    $s = <>;
    instead and provide the input file as the argument.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-20 03:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found