Re: put path together?

2003-06-26 Thread Sudarshan Raghavan
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/

Re: put path together?

2003-06-26 Thread Kevin Pfeiffer
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

Re: put path together?

2003-06-26 Thread Sudarshan Raghavan
[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

put path together?

2003-06-26 Thread magelord
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: