How can I extract parts of this filename in Perl?
Posted
by devtech
on Stack Overflow
See other posts from Stack Overflow
or by devtech
Published on 2010-02-23T12:36:15Z
Indexed on
2010/03/21
10:31 UTC
Read the original article
Hit count: 284
perl
In my Excel sheet with column Changeset I am getting the changeset like:
C:\ccviews\hgdasdff-9302\dfcsz\ahgrt\kjhssl\ASGHLS@@\main\ajsdkljlat\hahdasdhfk\1\test.txt\sub\hsdaklfl\3
I need to use split
function in a Perl script so that there will be two ouput (input as the above string)
- the part before @@ (e.g-here
C:\ccviews\hgdasdff-9302\dfcsz\ahgrt\kjhssl\ASGHLS
) - the last character of the string (e.g-here 3)
© Stack Overflow or respective owner