develooper Front page | perl.beginners | Postings from April 2019

Re: proper use of TEMPLATE

Thread Previous | Thread Next
From:
Hal Wigoda
Date:
April 15, 2019 17:58
Subject:
Re: proper use of TEMPLATE
Message ID:
469ADC83-B4DB-421F-BD18-9859316FD4C6@gmail.com
Lazy.  

(Sent from iPhone, so please accept my apologies in advance for any spelling or grammatical errors.)

> On Apr 15, 2019, at 12:49 PM, Andy Bach <afbach@gmail.com> wrote:
> 
> > unsubscribe
> 
> To unsub (or change your settings) you need to send a msg to the listserv admin address, not the list itself.  See:
> https://lists.perl.org/list/beginners.html
> 
> You can start a subscription for an alternate address, for example "john@host.domain", just add a hyphen and your address (with '=' instead of '@') after the command word:
> beginners-subscribe-john=host.domain@perl.org
> To unsubscribe this address, mail:
> beginners-unsubscribe-john=host.domain@perl.org
> 
> All subscription requests must be confirmed. You should receive a confirmation request a few minutes after you send your request in.
> 
> 
>> On Mon, Apr 15, 2019 at 4:29 AM Thomas von Eyben <thomasvoneyben@gmail.com> wrote:
>> unsubscribe
>> 
>>> On Thu, Mar 14, 2019 at 6:23 PM Rick T <perl@reason.net> wrote:
>>> I’m sure this is a “newbie question,” but I am only a shade above that status and would appreciate some clarification.
>>> 
>>> I have
>>> 
>>> use TEMPLATE
>>> 
>>> in my code to control whether the attribute 
>>> 
>>> selected 
>>> 
>>> appears with one of the < options> of the list following <select> in my served html document. Here’s one line from that list
>>> 
>>> <option value="1" [% bool_full_selected %]> Full Course (1 credit)</option>
>>> 
>>> My code can easily replace the correct var with ‘selected’ and the other vars on the list with a blank. But what should that blank be?
>>> 
>>> Should I make it an empty string, a space, undef, or something else? I can try them out to see what will work (perhaps all will work), but I want to know what is considered best practice and why.
>>> 
>>> Perhaps there’s even a whole better way to approach this! I will be grateful to chew over any and all comments you experienced people send me. Thanks!
>>> 
>>> Rick Triplett
>>> -- 
>>> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
>>> For additional commands, e-mail: beginners-help@perl.org
>>> http://learn.perl.org/
>>> 
>>> 
> 
> 
> -- 
> 
> a
> 
> Andy Bach,
> afbach@gmail.com
> 608 658-1890 cell
> 608 261-5738 wk

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About