Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
more useful options
 
PerlMonks  

RE: Credit where it is due

by extremely (Priest)
on Nov 15, 2000 at 11:54 UTC ( #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)


Comment on RE: Credit where it is due
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
Node Status?
node history
Node Type: note [id://41733]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2014-04-18 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (466 votes), past polls