in reply to Displaycode suggestion

I like the idea -- I'm just not sure what the name should be... the name of the node with .pl appended, the nodeid with .pl appended, a cleanup of the node name...

# $NODE is a common feature throughout the codebase, please, don't com +plaign about that element of my style. my $filename = $NODE->{title}; $filename =~ s/[^A-Za-z0-9.-]/_/g; $filename =~ s/__+/_/g; $filename .= '.pl';

, perhaps?


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

Replies are listed 'Best First'.
Re^2: Displaycode suggestion
by Aristotle (Chancellor) on Nov 26, 2004 at 10:37 UTC

    I vote for $nodeid.pl. The node title is likely ambiguous, requires arbitrary scrubbing rules, and does not offer a reference back to the source node.

    Makeshifts last the longest.

Re^2: Displaycode suggestion
by ww (Archbishop) on Nov 25, 2004 at 18:33 UTC
    nodeid.pl ROCKS ... and incidentally, makes easy to find ones way back to the source.
Re^2: Displaycode suggestion
by ysth (Canon) on Nov 25, 2004 at 20:56 UTC
    $filename =~ s/__+/_/g;
    $filename =~ y/_//s;
Re^2: Displaycode suggestion
by exussum0 (Vicar) on Nov 25, 2004 at 20:30 UTC
    Why not append a comment on the last line giving the node id the code was pulled from? For jerks like me who wind up copying files about and renaming a lot. Just an idea...

    Update: After chat in CB, found out it'll fubar either the she-bang line and/or some obfu. grrr

    ----
    Then B.I. said, "Hov' remind yourself nobody built like you, you designed yourself"