Re: Variables disappearing in code

2012-10-09 Thread Mark Haney
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/

Re: Variables disappearing in code

2012-10-09 Thread Mark Haney
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, I changed

Variables disappearing in code

2012-10-04 Thread Mark Haney
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

Re: cgi development environment

2012-09-18 Thread Mark Haney
if you like. I had to write up a setup sheet when I was working on a project. -- 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-cgi-unsubscr...@perl.org For additional commands

Using different libraries dynamically

2012-09-12 Thread Mark Haney
. -- 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/

Re: Using different libraries dynamically

2012-09-12 Thread Mark Haney
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 Developer

Package modules and EXPORTER use

2012-08-02 Thread Mark Haney
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 Linux marius.homelinux 3.4.6-1.fc16.x86_64 GNU/Linux

Re: Package modules and EXPORTER use

2012-08-02 Thread Mark Haney
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/

Slightly OT: POST data to perl script

2012-07-24 Thread Mark Haney
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 Haney Software Developer/Consultant AB

Re: Slightly OT: POST data to perl script

2012-07-24 Thread Mark Haney
On 07/24/2012 12:20 PM, Shawn H Corey wrote: On Tue, 24 Jul 2012 11:53:33 -0400 Mark Haney ma...@abemblem.com 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

Re: Check parameters for a checkbox

2012-06-15 Thread Mark Haney
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 = $q-param('DoW'), ); When I run the script I get this in apache's error.log: DBIx

Re: Check parameters for a checkbox

2012-06-15 Thread Mark Haney
-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? -- Mark Haney Software Developer/Consultant

Check parameters for a checkbox

2012-06-11 Thread Mark Haney
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 marius.homelinux 3.3.7-1.fc16.x86_64 GNU/Linux -- To unsubscribe, e-mail: beginners-unsubscr

Re: mod_perl for n00bs

2012-06-05 Thread Mark Haney
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/

Re: mod_perl for n00bs

2012-06-04 Thread Mark Haney
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 additional commands

Re: mod_perl for n00bs

2012-06-04 Thread Mark Haney
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 Software Developer

mod_perl for n00bs

2012-06-03 Thread Mark Haney
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-mail: beginners-h...@perl.org

Utility for generating DB schema?

2012-06-01 Thread Mark Haney
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 Emblem ma

Re: Utility for generating DB schema?

2012-06-01 Thread Mark Haney
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 Haney

Bareword and strict subs

2012-05-31 Thread Mark Haney
-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 going on? -- Mark Haney Software Developer/Consultant AB Emblem ma...@abemblem.com Linux

Closing CGI/DB connections

2012-05-21 Thread Mark Haney
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 Haney Software Developer/Consultant AB Emblem ma...@abemblem.com Linux marius.homelinux 3.3.5-2

Re: Template toolkit issue [SOLVED]

2012-05-08 Thread Mark Haney
. 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: beginners-unsubscr

Re: Template toolkit issue [SOLVED]

2012-05-07 Thread Mark Haney
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 unsubscribe, e

Re: Template toolkit issue [SOLVED]

2012-05-03 Thread Mark Haney
. 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/Linux -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail

Re: Template toolkit issue [SOLVED]

2012-05-03 Thread Mark Haney
the module in the first place. (Although the latter is completely irrelevant other than for my personal curiosity.) Any resources out on the web about this will be greatly appreciated. -- Mark Haney Software Developer/Consultant AB Emblem ma...@abemblem.com Linux marius.homelinux 3.3.2-6.fc16

Re: Template toolkit issue [SOLVED]

2012-05-03 Thread Mark Haney
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 rarely used any

Template toolkit issue

2012-05-02 Thread Mark Haney
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 any help I can get. -- Mark Haney

Re: Template toolkit issue

2012-05-02 Thread Mark Haney
, the output includes a large amount of whitespace at the top above the !DOCTYPE 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.org

Re: Template toolkit issue

2012-05-02 Thread Mark Haney
' }); $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 the browser output. That output, btw, renders on the server just fine when I open the file directly. -- Mark

Re: Template toolkit issue

2012-05-02 Thread Mark Haney
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 -- To unsubscribe, e-mail

Re: Template toolkit issue [SOLVED]

2012-05-02 Thread Mark Haney
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-mail: beginners-h

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Mark Haney
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.homelinux 3.3.2-6.fc16.x86_64 GNU/Linux -- To unsubscribe, e-mail

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Mark Haney
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

PERL CGI, HTML and PHP

2012-04-25 Thread Mark Haney
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 Developer/Consultant AB Emblem ma...@abemblem.com Linux marius.homelinux 3.3.1-5.fc16.x86_64 GNU/Linux

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Mark Haney
and using PHP for the front end/UI stuff. FWIW, I've never seen an entire website built completely in perl. Doesn't mean there aren't any, but they must be very few and far between. (No offense to the perl crowd, just an observation.) -- Mark Haney Software Developer/Consultant AB Emblem ma

Re: perl DBI n00b

2012-01-12 Thread Mark Haney
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 really

perl DBI n00b

2012-01-11 Thread Mark Haney
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:

problem with passing variables

2011-12-30 Thread Mark Haney
wrong? - Mark Haney -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/

problem with passing variables

2011-12-30 Thread Mark Haney
wrong? - Mark Haney -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: problem with passing variables

2011-12-30 Thread Mark Haney
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`

Re: problem with passing variables

2011-12-30 Thread Mark Haney
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 ma...@abemblem.com mailto:ma...@abemblem.com But there's