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

I have incorporated all suggestions, including the symlink check:

$file_path =~ /(.*)\/([^\/]+?$)/; my ($dir, $file) = ($1, $2);

MANY THANKS to all

Replies are listed 'Best First'.
Re^3: dir / file split
by johngg (Canon) on Sep 28, 2007 at 15:20 UTC
    I have incorporated all suggestions

    Except the different delimiter :)

      now:
      $file_path =~ m{(.*)/([^/]+?$)}; my ($dir, $file) = ($1, $2);

      Thanks John