Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
Welcome to the Monastery
 
PerlMonks  

Re: Private Utilities

by SolidState (Scribe)
on Dec 01, 2005 at 10:29 UTC ( [id://513304]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Private Utilities

One little utility I wrote which others in my workplace have found useful is called 'fp', for "Full Path":

use strict; use warnings; use Cwd qw(abs_path); my $file = $ARGV[0] || "."; die "Error - couldn't find (or read) '$file': $!\n" if !(-e $file); print abs_path($file) , "\n";

The reason for writing it was that I frequently found myself copying file names from the terminal to email as a pointer to someone and it was getting annoying to write "pwd", copy the output, then copy the filename and paste it after the "pwd" output.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://513304]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.