Help: replace one char with more chars

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hai Xu

    Help: replace one char with more chars

    Hi,

    How do I replave 'A' with 'ABC' ?

    Thanks

    Hai


  • Nick

    #2
    Re: Help: replace one char with more chars

    Hai Xu wrote:[color=blue]
    > Hi,
    >
    > How do I replave 'A' with 'ABC' ?
    >
    > Thanks
    >
    > Hai
    >
    >[/color]
    Try to find a perl book or google it first. It's really too basic.

    Comment

    • Jim Gibson

      #3
      Re: Help: replace one char with more chars

      In article <c23g39$hgk$1@n ews3.bu.edu>, Nick
      <nbdy9.REMOVE_N OSPAM@hotmail.c om> wrote:
      [color=blue]
      > Hai Xu wrote:[color=green]
      > > Hi,
      > >
      > > How do I replave 'A' with 'ABC' ?
      > >
      > > Thanks
      > >
      > > Hai
      > >
      > >[/color]
      > Try to find a perl book or google it first. It's really too basic.
      >[/color]

      Or try http://learn.perl.org

      Or try

      perldoc perlop

      and look for tr/// and s/// operators.

      Note: this newsgroup is defunct. Try comp.lang.perl. misc in the future
      (after you have done a lttle reading).

      Comment

      Working...