in reply to Re: (joshua)Re: parsing a path
in thread parsing a path

Ah, good point. I was just building on kvale's code though.

Replies are listed 'Best First'.
Re: (joshua)Re^3: parsing a path
by softworkz (Monk) on Jul 18, 2002 at 18:01 UTC
    How about this way..
    #!/usr/bin/perl -w use strict; while (<DATA>) { my @a = split(/\\/); print "$a[1] $a[2] $a[4]\n"; } __DATA__ \nb\v5\srcccc\ans.cpp@@\main\ \nb\v5\srcccc\ans.cpp@@\main\ \nb\v5\srcccc\test.cpp@@\main\ \nb\v5\safe\test.cpp@@\main\ \nb\v5\safe\test.cpp@@\main\