On 7/3/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote:

I always deal with indices' 1 through to the end in the function in question,
so it's easy to get the second indices (First disc) and so on.

Huh?

I need to manipulate the path though now, I am wanting to search
for *all* the text following the third "/" and before the fourth "/" and
replace it with a string variable.

That sounds almost as if you're wanting to use substr and index: index
to locate each "/", and substr to work with the identified part of the
string.

Or maybe you want to use a substitution (s///), but I doubt that.

But if you're really manipulating file and directory names, probably a
solution involving (say) File::Basename or another module would be
more likely to be correct.

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to