Kevin Pfeiffer wrote:
In article <[EMAIL PROTECTED]>, Sudarshan Raghavan
wrote:
[EMAIL PROTECTED] wrote:
hello to everyone. when i have a path like that:
/usr/X11R6/lib/X11/locale
how can i cut this path into strings like that:
/
/usr
/usr/X11R6
/usr/X11R6/lib
/usr/X11R6/lib/X11
/usr/
In article <[EMAIL PROTECTED]>, Sudarshan Raghavan
wrote:
> [EMAIL PROTECTED] wrote:
>
>>hello to everyone. when i have a path like that:
>>
>>/usr/X11R6/lib/X11/locale
>>
>>how can i cut this path into strings like that:
>>
>>/
>>/usr
>>/usr/X11R6
>>/usr/X11R6/lib
>>/usr/X11R6/lib/X11
>>/usr/X11
[EMAIL PROTECTED] wrote:
hello to everyone. when i have a path like that:
/usr/X11R6/lib/X11/locale
how can i cut this path into strings like that:
/
/usr
/usr/X11R6
/usr/X11R6/lib
/usr/X11R6/lib/X11
/usr/X11R6/lib/X11/locale
You have multiple options
1) split (perldoc -f split)
2) index and
hello to everyone. when i have a path like that:
/usr/X11R6/lib/X11/locale
how can i cut this path into strings like that:
/
/usr
/usr/X11R6
/usr/X11R6/lib
/usr/X11R6/lib/X11
/usr/X11R6/lib/X11/locale
and write this at the beginning of a file? i tried many things, but all
things i tried failed: