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
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
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
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.
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
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
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
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
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
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
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
11 matches
Mail list logo