Re: html print

2010-04-16 Thread Shlomi Fish
Hi Shawn, first of all I should note that I suspect that you have been under some stress, and you're taking it on me. It's quite unlike you. Is this indeed the case? Now I'll reply to what you say. On Tuesday 13 Apr 2010 16:07:26 Shawn H Corey wrote: > Shlomi Fish wrote: > > Which arguments do

Re: html print

2010-04-13 Thread Shawn H Corey
Shlomi Fish wrote: Which arguments do you give in favour of using << shift(@_); >> instead of << shift; >>? The fact that << shift; >> extracts out of @_ or @ARGV by default is documented in "perldoc -f shift;" http://perldoc.perl.org/functions/shift.html and, like I noted, the programmer know

Re: html print

2010-04-13 Thread Shlomi Fish
Hi Chris, On Monday 12 Apr 2010 14:25:04 Chris Coggins wrote: > Shlomi Fish wrote: > > Hi Chris, > > > > A few comments on your code - some of which may help you. > > > > On Monday 12 Apr 2010 12:06:16 Chris Coggins wrote: > >> I'm having trouble getting a piece of data from a form input to prin

Re: html print

2010-04-12 Thread Shlomi Fish
Hi Shawn, Thanks for your message. Thanks for trimming my message so carefully and not replying to all my points. (That was sarcasm.) On Monday 12 Apr 2010 17:50:14 Shawn H Corey wrote: > Shlomi Fish wrote: > > Because people often don't know for sure what is the right way, and > > confuse it.

Re: html print

2010-04-12 Thread John W. Krahn
Shlomi Fish wrote: On Monday 12 Apr 2010 12:06:16 Chris Coggins wrote: print < You should always say <<"STOPHTML" <<'STOPHTML' <<`STOPHTML` etc. with explicit quotes depending on what you say. Otherwise, you may not be sure that it's doing the right thing (nor will your readers). As a rea

Re: html print

2010-04-12 Thread Shawn H Corey
Shlomi Fish wrote: Because people often don't know for sure what is the right way, and confuse it. On the other hand, people don't normally think that "shift;" How do you know what people think? You're assuming because it's easy for you, it will be easy for everyone. -- Just my 0.0002

Re: html print

2010-04-12 Thread Shlomi Fish
Hi Shawn, I hope it's OK that I CC the list on it. On Monday 12 Apr 2010 15:37:02 Shawn H Corey wrote: > Shlomi Fish wrote: > > {{{ > > my $hash = shift; > > }}} > > Always put the array after a shift: > >my $hash = shift @_; > Well, you don't need to in this case as <> inside a subroutin

Re: html print

2010-04-12 Thread Chris Coggins
Shlomi Fish wrote: Hi Chris, A few comments on your code - some of which may help you. On Monday 12 Apr 2010 12:06:16 Chris Coggins wrote: I'm having trouble getting a piece of data from a form input to print in html. Here's the relevant portion of my code sub subroutine { I hope

Re: html print

2010-04-12 Thread Shlomi Fish
Hi Chris, A few comments on your code - some of which may help you. On Monday 12 Apr 2010 12:06:16 Chris Coggins wrote: > I'm having trouble getting a piece of data from a form input to print in > html. Here's the relevant portion of my code > > sub subroutine { I hope you didn't call your subr

AW: html print

2010-04-12 Thread Thomas Bätzler
Chris Coggins asked: > I'm having trouble getting a piece of data from a form input to print > in html. Here's the relevant portion of my code > > sub subroutine { > my($hash) = shift; > my($data) = "$hash->{'expl'}"; > > print "Content-type: text/html\n\n"; > print < This employee has $data > S

html print

2010-04-12 Thread Chris Coggins
I'm having trouble getting a piece of data from a form input to print in html. Here's the relevant portion of my code sub subroutine { my($hash) = shift; my($data) = "$hash->{'expl'}"; print "Content-type: text/html\n\n"; print