Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

RE: Credit where it is due

by extremely (Priest)
on Nov 15, 2000 at 11:54 UTC ( [id://41733]=note: print w/replies, xml ) Need Help??


in reply to Credit where it is due

I ++'ed this but I have to ask, where do you put the comment? At the end (__DATA__ oops), at the beginning, (before or after #!/usr/bin/perl, what if there is no #! line?) what if the script has been line_numbered?

I hate throwing wrenches into plans I like but I have no idea how I'd do it...

--
$you = new YOU;
honk() if $you->love(perl)

Replies are listed 'Best First'.
RE: RE: Credit where it is due
by little (Curate) on Nov 15, 2000 at 12:40 UTC
    I think it's a question of format.
    The first line you cant use :-), so write a comment into the second line of your code in the node. That means, when downloading code, your script has to parse the second line for the options "numbered=yes" or "no" and or any other things, so your little script will know if to strip line numbers or to mask them within comments. The authors information your script could include then anywhere within the file just using POD's author information and copyright notice, and if you want your script could even include the whole description from the original node within that POD.
    Well, once more thinking about that, yes, I think perlmonks could generate such a file for you when you download the code. So you don't have to parse :-) but get a script with a nice "small(?)" POD, eh?
    well perl can ..

    Have a nice day
    All decision is left to your taste
    Update :
    As perlmonks (or better to say Everything) uses XML why not to support tags when you post your script such as
    <info> <author> <name>blah</name> <email>blubber@blob.com</email> <funnythings>for my mom's pride</funnythings> </author> <more> </more> </info>
    just before or after the code or just somehow else

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-03-28 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found