On 2010-11-29 02:27, Kenneth Wolcott wrote:
On Sun, Nov 28, 2010 at 12:31, Dr.Ruud<[email protected]> wrote:
On 2010-11-28 10:54, Chaitanya Yanamadala wrote:
How do i split a value like this
F:\test\test123\test1233
For example:
ruud$ perl -wle 'print for split //, q{F:\test\test123\test1233}'
F
:
-snip-
3
3
The reason one should use File::Basename and File::Spec is that you
can become platform-independent instead of Windoze-worshipping :-)
What does the operating system have to do with this?
OP asked how to split a string, I gave an example how to do it character
by character.
Another example:
ruud$ perl -wle '
print for split /([aeiou])/, q{F:\test\test123\test1233}'
F:\t
e
st\t
e
st123\t
e
st1233
--
Ruud
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/