Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^7: issues displaying cgi script source?

by antirice (Priest)
on Jul 08, 2004 at 05:20 UTC ( [id://372676]=note: print w/replies, xml ) Need Help??


in reply to Re^6: issues displaying cgi script source?
in thread issues displaying cgi script source?

Alas, there's the rub. You're offering this script for download as well. While it may not work for your machine, it may work elsewhere. Thus I have to say it: fix your damn code!

How do you extract only the file? Glad you asked:

use File::Spec; my $file = "../this/is/a/problem/file.pl"; $file = (File::Spec->splitpath($file))[2] if $file; print $file; __END__ file.pl

antirice    
The first rule of Perl club is - use Perl
The
ith rule of Perl club is - follow rule i - 1 for i > 1

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://372676]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-23 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found