Hello Listners,

I am totally novice in perland I need help with that script.
what can be the syntex of assigning a variable (my $path) in perl which  is
taking value (for example  c:\documents\script.txt) from an expternal APP.
The script will actually parse the my$path value (C:\documents\script.txt)
to (script.txt) and then will send parse value of my$path to STDOUT.
I am not sure how should I declare the value of my$path.

The script looks like this

\#!/usr/bin/perl
use strict;
use File::Basename;

  my $path =  Variable from external app
  my $base = basename($path);
  my $dir  = dirname($path);
  print STDOUT $base;


I will really appreciate any help/comment on it.

thanks



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to