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

Re: String manipulation

by BbTrumpet (Acolyte)
on Aug 02, 2004 at 18:07 UTC ( [id://379348]=note: print w/replies, xml ) Need Help??


in reply to String manipulation

A hack from a not-an-expert Perl user, but it works:
use strict; my $initValue = 3; my $step = 3; my $numOfMembers = 25; my $str = ""; my $ix; for($ix = $initValue; $ix <= $initValue + $step * ($numOfMembers - 1); $ix += $step) { $str .= $str eq "" ? $ix : " $ix"; } ### TEST ### print "'$str'\n";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found