in reply to Re^2: dir / file split
in thread dir / file split

I have incorporated all suggestions

Except the different delimiter :)

Replies are listed 'Best First'.
Re^4: dir / file split
by camelcom (Sexton) on Sep 28, 2007 at 15:55 UTC
    now:
    $file_path =~ m{(.*)/([^/]+?$)}; my ($dir, $file) = ($1, $2);

    Thanks John