Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

i would like to write the code that can replace a charecter with another position based on its postion then if i command it gives the answer eg replace 1-h,5-y

Replies are listed 'Best First'.
Re: [OT] c code
by marto (Cardinal) on Jun 27, 2018 at 15:10 UTC

      "... check out ..." perlintro also.


      Give a man a fish:  <%-{-{-{-<

Re: [OT] c code
by Laurent_R (Canon) on Jun 27, 2018 at 17:12 UTC
    In addition to what marto said, I would state that your requirement is really not clear:

    - Do you want to write a C program or a Perl program? If you want to have C code, then you probably chose the wrong forum. Either way, you might want to start with good book for beginner and first try to solve your problem by yourself.

    - I have no idea what "replace a charecter with another position based on its postion" means and your purported example is as limpid as mud. A good example should state the input, the output and often an explanation on how to get from the input to the output.

    Please clarify.

    Update: fixed a small typo.

Re: [OT] c code
by Lotus1 (Vicar) on Jun 27, 2018 at 17:10 UTC