Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

String manipulation

by hotshot (Prior)
on Aug 01, 2004 at 13:24 UTC ( [id://379063]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # for example:
    $initValue = 2;
    ...
    
    # wanted string is:
    $str = '2 5 8 11 14';
    
  2. or download this
    my $str = $initValue;
    for (my $i=2; $i<=$numOfMembers; $i+=$step) {
       $str .=  ' ' . ($initValue + $step($i-1));
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://379063]
Approved by dsb
Front-paged by VSarkiss
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2024-03-28 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found