2010/11/16 Saurabh Bhatnagar :
> Hello,
> This is my first post.
>
> I have perl code to strip the root folder in a path.
> ($shortpath = $fullpath) =~ s|/[^/]+||;
>
You may want to try:
File::Basename
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: b
On 10-11-15 11:55 AM, Saurabh Bhatnagar wrote:
However, this gives syntax errors when used in my CGI script that calls my perl
script.
What is the error?
What is the OS?
What is the server?
When dealing with file systems, it's best to use the module File::Spec
which comes with Perl. See `
Hello,
This is my first post.
I have perl code to strip the root folder in a path.
($shortpath = $fullpath) =~ s|/[^/]+||;
However, this gives syntax errors when used in my CGI script that calls my perl
script.
Can I have the CGI equivalent?
Warm regards
Saurabh
--
To unsubscribe, e-mail: beg