On 10/09/2012 08:20 AM, Mark Haney wrote:
So, this is obviously a problem bigger than just this one routine. But
bugger me if I know where to go from here.
I don't even know what to say now. I have it working. I'm not entirely
sure /why/ it works, but it does. Just for fun,
# End Get shift data routine
So, this is obviously a problem bigger than just this one routine. But
bugger me if I know where to go from here.
--
Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux marius.homelinux.org 3.5.1-1.fc17.x86_64 GNU/Linux
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
I've got a Template Toolkit template that is driving me insane. I've hit the
TT list, but it seems more and more like the problem may be more perl related
than a templating issue. I've attached the offending files so now let me show
what the problem is.
I have two SQL statements that pull fac
On 09/12/2012 10:57 AM, Rob Dixon wrote:
Hey Mark
I suggest you use set the MYLIBPATH environment variable to the
directory you want to use and then do
use lib $ENV{MYLIBPATH}
at the head of your program
HTH,
Rob
Thanks Rob, I'll look into it.
--
Mark Haney
Software Deve
e.
So? What should I do? Any suggestions are appreciated.
--
Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux marius.homelinux.org 3.5.1-1.fc17.x86_64 GNU/Linux
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
this help?
--
Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux marius.homelinux 3.4.6-1.fc16.x86_64 GNU/Linux
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
ER is optional, but also can't find
anything special about the content or syntax, etc about the package that
doesn't use it.
So, should I use it? Does it really matter in small apps? What am I
missing here?
--
Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linu
On 07/24/2012 12:20 PM, Shawn H Corey wrote:
On Tue, 24 Jul 2012 11:53:33 -0400
Mark Haney wrote:
The problem I'm seeing in tcpdump is that it appears that the first
two integers are being dropped if they are both zeroes.
You could reconstruct the leading zeros in your Perl script.
f
irst digit being !=0. I can't say (but suspect) if the
first digit only = 0 if it gets dropped, since the data won't come with
that output.
I know this is an HTML type issue, but is there something I'm missing?
Maybe an escape char that would keep that from happening?
--
Mark
$self->schema->resultset('Shifts')->new({
shift_days => $attrs->{shift_days},
factory => $attrs->{factory},
});
$m->insert;
}
Would get me the list data from the DoW paramter passed to the original
CGI script
On 06/11/2012 03:51 PM, Mark Haney wrote:
my %attrs = (
shift_name => $q->param('shift_name'),
shift_beg => $q->param('shift_beg'),
shift_end => $q->param('shift_end'),
factory_id => $q->param('factory'),
shift_days =>
he T in Tuesday since the Monday and Tuesday
are the only two I selected. I'm missing something simple, but I've not
found any help on Google explaining how checkbox data is passed in a form.
Any ideas?
--
Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux ma
the
code up to date for the future than any other reason.
Does that make sense?
--
Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux marius.homelinux 3.3.7-1.fc16.x86_64 GNU/Linux
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
dules with Perl. This means things
like altering request flow, authentication, and the like--not Web apps.
Okay, you've talked me into it. What's the learning curve for Dancer?
Or Web::Simple?
How hard is it to convert existing CGI.pm code into the framework?
--
Mark Haney
Sof
I've read and been told is that mod_perl is a better fit
than using CGI.pm like I've been doing.
--
Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux marius.homelinux 3.3.7-1.fc16.x86_64 GNU/Linux
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For
isn't an object, so don't let that be a hindrance.
Thanks in advance.
--
Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux marius.homelinux 3.3.7-1.fc16.x86_64 GNU/Linux
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e
On 06/01/2012 08:54 AM, John SJ Anderson wrote:
Look at DBIx::Class::Schema::Loader.
Yeah, but I could have sworn there was another utility that did the same
thing. Maybe a wrapper around that module or something. I just can't
remember it. Ah well. Thanks anyway.
--
Mark
A while back I used a utility that generated database Schema perl
modules automatically. Now I can't remember what that utility was
called, does anyone else know? I'd prefer not creating these by hand if
I can help it.
--
Mark Haney
Software Developer/Consultant
AB
t;
my $attrs = @_;
my $m = $self->schema->resultset('Shifts')->new(attrs);
$m->insert;
}
I've googled this error, but what I've found is not very informative. I
have no idea what a Bareword is in the Perl context. Can someone
explain what's goi
o I need to call DBI->connect again? I've curious as to how this is
handled, since I don't see a close() or disconnect() used in any of the
existing, inherited, code, which I normally use just to clean up after
the script runs.
What's the best way to do this?
--
Mark H
.
Lou and Mark
Rob
Tweren't me. I did post a similar reply to yours, but I wasn't the one
wanting to opt out.
--
Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux marius.homelinux 3.3.4-3.fc16.x86_64 GNU/Linux
--
To unsubscribe, e-mail: beginner
tions on how to unsubscribe:
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
--
Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux marius.homelinux 3.3.2-6.fc16.x86_64 GNU/Linux
--
To
On 05/03/2012 10:49 AM, Lawrence Statton wrote:
On 05/03/2012 07:41 AM, Mark Haney wrote:
On 05/02/2012 03:53 PM, Octavian Rasnita wrote:
I'm really quite intrigued by the assertion that CGI is very seldom
used.
Well, do you mean "CGI.pm" the perl module, which is, AFAIK
x27;s two sides of the same
coin. However, I will certainly keep this in mind as I craft any future
posts. Sometimes, phrasing is more important than anything else.
I appreciate the time taken for you to reply. As it is, please point me
to how I can get perl to do CGI without CGI.pm.
platform that has a good helpful community. My
apologies to those that have helped. It's been greatly appreciated, but
I'm about as frustrated as I can possibly be.
--
Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux marius.homelinux 3.3.2-6.fc16.x86_64 GNU/L
her and go back to PHP and it's more
complete and useful documentation.
--
Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux marius.homelinux 3.3.2-6.fc16.x86_64 GNU/Linux
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-ma
ar to the other CGI scripts I
have that generate reports. I suppose I'm not able to be any more
clear, since I'm not sure even what the problem is.
--
Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux marius.homelinux 3.3.2-6.fc16.x86_64 GNU/Linux
S => ['config','header'],
POST_PROCESS => 'footer'
});
$template->process($file, $vars)
|| die "Template process failed: ", $template->error(), "\n";
And attached is the exact HTML output of the script copied and pasted
directly from th
eason, the output includes a
large amount of whitespace at the top above the tag. Could
that be a problem?
--
Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux marius.homelinux 3.3.2-6.fc16.x86_64 GNU/Linux
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.or
run it and dump the HTML file into a folder and open it
in a browser (on the same server mind you) I get the correct rendering
of the page.
So, what the devil am I missing? I'll be glad to send my stuff to
someone offlist to work on this, since it might be slightly OT, but I'll
take a
On 04/26/2012 08:27 AM, Bob McConnell wrote:
From: Mark Haney
This exposes the source of your confusion. Javascript is executed in the
browser, while Perl, PHP, ASP and JSP are all executed on the server. So JS
simply complements all of the others. The biggest issue is that you cannot
work setup. I noticed replies about perl
templates and I'll look into them now.
My apologies for sounding like a troll. It was a question I thought had
a quick answer. You live and learn.
--
Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux marius.homeli
On 04/25/2012 02:54 PM, Matthew K wrote:
Mark,
- Original Message -
From: Mark Haney
To: Perl Beginners
Cc:
Sent: Wednesday, April 25, 2012 11:51 AM
Subject: PERL CGI, HTML and PHP
I've got, what I hope is a fairly simple problem that someone can point me
to the best (or
disk as an HTML file and then include that output in a PHP page that is
correctly formatted.
What is the best way to handle this? I'll take any and all suggestions.
I've never had to do this particular function before so I'm grasping
at straws.
Thanks.
--
Mark Haney
Software De
On 01/11/2012 09:58 AM, Mark Haney wrote:
I'm pretty new to the perl DBI world, so can someone point me to a
good tutorial/reference site or book or something? I'm very
proficient with databases and pretty good with basic perl, but not
used together. Any help would be appreciated.
I'm pretty new to the perl DBI world, so can someone point me to a good
tutorial/reference site or book or something? I'm very proficient with
databases and pretty good with basic perl, but not used together. Any
help would be appreciated.
--
To unsubscribe, e-mail: beginners-unsubscr...@per
On 12/30/2011 12:50 PM, Igor Dovgiy wrote:
If you pass into SQL query something assigned by user, use
placeholders by all means. ) It's not that hard, but it'll save you a
lot of headaches, believe me. )
2011/12/30 Mark Haney mailto:ma...@abemblem.com>>
But there'
On 12/30/2011 12:30 PM, Igor Dovgiy wrote:
Hi Mark,
If your variables are strictly internal and by no means might be ever
tainted (read: user input), what you're doing is mostly ok.
But you need to quote the dates passed within query itself, like this:
my $sql = qq/SELECT * FROM `events` WHER
x27;m not sure why it's not using the the variables, can someone point out
what I'm doing wrong?
-
Mark Haney
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
39 matches
Mail list logo