Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Re: Enhancement: "hidden" code tag

by Kanji (Parson)
on Mar 12, 2003 at 00:45 UTC ( [id://242224]=note: print w/replies, xml ) Need Help??


in reply to Re: (jeffa) Re: Enhancement: "hidden" code tag
in thread Enhancement: "hidden" code tag

Is there some reason why you couldn't do this using the already existing <readmore>?
#!/usr/bin/perl -w use strict; ... several other 'use' statements.
# I think the fake code problem is here: some_sub('blah blah blah'); sub some_sub { do_something(); &nbsl;do_something_else(); }
sub supporting_sub1 { ... code ... } sub supporting_sub2 { ... code ... }

    --k.


Replies are listed 'Best First'.
Re: Re: Re: Re: Enhancement: "hidden" code tag
by hossman (Prior) on Mar 12, 2003 at 01:21 UTC

    The distinction is that stuff you "hide" in a readmore will show up if anyone looks at your node directly, where as the poster is suggesting a new tag which would never show up when viewing the node (either in a list, or directly) and would only be included as part of the "d/l code" content.

    The advantage of readmore tag is being able to shorten the node if you just want an overview.

    The advantage of a "hidden_code" tag would be that you could allways make "d/l code" provide a complete program, with all neccessary use statements and helper functions, but reading the node would only include the specific code you have a question about.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-25 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found