[H-GEN] char inset

Grant, Luke lgrant at seven.com.au
Tue May 2 19:42:00 EDT 2000


[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics.  Please observe the list's charter.          ]


hi guys,

I am performing an update/port of an existing database and have written some
CGI scripts in perl for some of the 
people who work with this particular database to use to bring the data (much
of which is missing) up to date before i do a complete port of the database.

I have run into one small problem. One of the fields needs to expand in
width and i need to write an app of some sort to change this automagicaly so
that some poor sap doesn't have to change the data in 20,000+ reccords.

so what i need is a howto on the following in either bash or perl.

"B43" which is the contents of a string variable must become "B043" and i
have no idea how i can insert a char into a string in Bash or Perl.....and i
would rather not have to dust of my old "C" texts cause whilst i know that
strings are treated as nice simple arrays of char in "C" i haven't coded in
it for over a year and would rather not start now.


Thanks in advance,
Luke 

--------------------------------------------
_____
\___//|     Luke Grant
    / /     Systems Administrator
   / /      Maroochydore
  /_/       140-142 Horton Pde.
Channel 7   wk#  +61754301737
            mob# +61413317952

--------------------------------------------

--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list