wrote:
> hi Iam pavan . I need to run a perl script
If your system is set up properly then you can run a perl script simply by
typing it's name on the command line.
If that is not your problem then we will need much more details about your
system and how exactly you are trying to run the script.
> that runs on a file and
> does the following.
>
> The file may look like like this
> pavan.h:
>
> pavan_here hi how r u
> pavan_there Iam fine
> pavan_now typing
>
> Search for words containing pavan(say)
> In the above example it much search for pavan_here, pavan_there ,
> pavan_now and modify those words
To modify text people often use the 's' (aka substitute) function
> such that
> 1.underscores must be eliminated
This could also be done by the 'tr' function
> 2. Next letter to underscore(i.e anyletter after underscore) must
> become capital.
The easiest way is probably to use the 'ucfirst' function.
> I mean to say when I run the script the file must modify to
>
> pavanHere hi how r u
> pavanThere Iam fine
> pavanNow typing
>
> Hope you understood the problem
I understand your goal (at least I think), that was a good description.
But you didn't explain what your problem is nor did you give us enough
information to fix it. Where are you stuck? Which part of your program is
not working as expected? Where is your program to begin with?
jue