Using GET and POST Data Simultaneously

2010-06-23 Thread Nigel Peck
A Perl web-application I have written uses both GET and POST data at the same time. This is because I have URLs like: http://www.example.com/site-manager/page/45 which are Mod_rewritten (internal server side rewrite, not passed back to browser) to: http://www.example.com/site-manager?actio

Re: [Fwd: Re: Making Web Form Data Safe]

2009-03-16 Thread Nigel Peck
Gunnar Hjalmarsson wrote: >> For the body of the message, one thing that occurs to me is \n.\n as >> that would end the message? But presumably nothing else could be entered >> after that as sendmail would close? > > True. But that's not exactly a security issue, right? No, not as long as it does

[Fwd: Re: Making Web Form Data Safe]

2009-03-16 Thread Nigel Peck
Gunnar Hjalmarsson wrote: Nigel Peck wrote: I'd appreciate hearing (reading!) people's thoughts on making web form data safe for using to compose an email via sendmail. Basically, see comments in pseudo-code below, what should I be doing to the data to ma

Making Web Form Data Safe

2009-03-16 Thread Nigel Peck
I'd appreciate hearing (reading!) people's thoughts on making web form data safe for using to compose an email via sendmail. Basically, see comments in pseudo-code below, what should I be doing to the data to make it safe? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- use strict; use CGI; my $query

Re: Converting Video to FLV

2008-10-24 Thread Nigel Peck
On Thu, 23 Oct 2008 20:41:14 +0100, [EMAIL PROTECTED] (Nigel Peck) wrote: No perl module, but here are a couple of external commands which you can run from a perl script. [snip] You can also search google and groups.google for many examples of "mencoder convert flv". Thanks Zenta

Converting Video to FLV

2008-10-23 Thread Nigel Peck
Hi, Does anyone know of a module/library for converting video files to FLV? Thanks Nigel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: HTTP Redirects

2008-09-18 Thread Nigel Peck
Rob Dixon wrote: Hmm. Well it would have helped if you had said that your script was running under mod_perl rather than perl. It's not running under mod_perl. Cheers, Nigel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: HTTP Redirects

2008-09-16 Thread Nigel Peck
Mr. Shawn H. Corey wrote: # Get the computer to tell you what's happening ... Rob Dixon wrote: The only way to fully understand what CGI does is to read its code. Perl modules ... Thanks both for your responses. It turns out I need to send the full URL whereas I was sending a relative URL w

HTTP Redirects

2008-09-16 Thread Nigel Peck
Hi all, I'm missing something here with regards http redirects. I'm trying to have my script redirect to itself through the browser so that the URL changes in the browser. When I send the headers myself: print 'Location: ' . $_[0] . "\n"; print 'Connection: close' . "\n\n";

Re: Character Sets and Encoding in Web Applications

2008-09-14 Thread Nigel Peck
Dr.Ruud wrote: Nigel Peck schreef: I have a web application that gathers various data. When users enter pound signs (english money not #) a number of strange characters get stored in the database: Here's a copy and paste: £6.50 per hour That is UTF8 encoded text. You ca

Character Sets and Encoding in Web Applications

2008-09-12 Thread Nigel Peck
I have a web application that gathers various data. When users enter pound signs (english money not #) a number of strange characters get stored in the database: Here's a copy and paste: £6.50 per hour Now I'm 99% sure this will be because I am not handling the character sets and enc

GD::Image

2008-07-15 Thread Nigel Peck
Can someone please let me have some example code of setting the colour of text being added to an image, my current code is: my $image = GD::Image->new( $data_path . '/voucher/voucher.jpg' ); # Write the date $image->string( gdGiantFont, 315, 198, $expiry_date , 0 ); # Write the voucher number

Perl Programmer in Yorkshire, UK?

2008-04-02 Thread Nigel Peck
Hi all, I need some paid help with various Perl projects that I have going and don't have time to write all the code. Please let me know if you're interested or know anyone who is but you must live in Yorkshire. Sorry if this is the wrong list for this. Cheers, Nigel Managing Director MIS

Persistent Data with HTTP, Apache and Perl

2007-12-20 Thread Nigel Peck
Hi all, I'm looking for some recommendations of ways to have http sessions using Apache and Perl. I have (will have) a shopping application that needs to work across user's visits to static html pages, so passing a session id in the page is not viable. I don't want to rely on cookies. Ho

Regexes matching ^ and $

2007-11-12 Thread Nigel Peck
Hi, Just a quick question about ^ and $ in regexes when using /m. Will they match next to any embedded newline characters? i.e. \015\012, \015 and \012 or will they only match next to the same newline that \n will match? i.e. platform specific Thanks Nigel -- To unsubscribe, e-mail: [EMAI

Re: Parsing Bounced Emails

2007-10-29 Thread Nigel Peck
Dr.Ruud wrote: Consider MailTools: http://search.cpan.org/~markov/MailTools/ Thanks Dr.Rudd, looks useful to me. Cheers, Nigel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Parsing Bounced Emails

2007-10-26 Thread Nigel Peck
Matthew Whipple wrote: http://www.epigroove.com/posts/69/review_of_bbounce_stay_away_far_away ... It this an example of a bounce response that you're having problems parsing? No it's just some other people discussing how they've had the same experience as me with bbounce.com, it sounds g

Re: Parsing Bounced Emails

2007-10-26 Thread Nigel Peck
Tom Phoenix wrote: Mail::DeliveryStatus::BounceParser... it doesn't work Maybe you need to fix that module so that it works for you, or to use a different module, or even to write parsing code from scratch. If you can't find a more suitable module for your needs, you could try Parse::RecDescent

Parsing Bounced Emails

2007-10-25 Thread Nigel Peck
Hi all, Just hoping someone might have some advice on what to use to parse bounced emails and tell me what type of bounces they are, if they are bounces at all. I tried... Mail::DeliveryStatus::BounceParser... it doesn't work bbounce.com... they don't exist, they just take your money and t

Re: Regarding perl/tk programming

2007-05-15 Thread Nigel Peck
Dharshana Eswaran wrote: I need to create a GUI and integrate my perl script to it. I decided to get the GUI using perl/Tk programming. I searched in the net and i am unable to get a good tutorial or any document regarding the perl/Tk programming. If anyone knows any links or have any documents,

Re: Charting Module

2007-05-09 Thread Nigel Peck
Nigel Peck wrote: Hi Robert, . recommending to another party any transaction or matter addressed herein. Sorry for the top posting! Cheers, Nigel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Charting Module

2007-05-09 Thread Nigel Peck
Hi Robert, I use GD::Graph and have found it to be a good solution; easy to configure, plenty of options, intuitive. I'd recommend it. Cheers, Nigel Managing Director MIS Web Design http://www.miswebdesign.com/ MIS Web Design Limited is registered in England and Wales with company number 0

Re: Diff on a database structure

2007-05-07 Thread Nigel Peck
David Van Ginneken wrote: This may work for you: http://www.adamspiers.org/computing/mysqldiff/ http://search.cpan.org/~aspiers/MySQL-Diff-0.33/ I tried it comparing 2 test databases here and it appears to work. Looks like exactly what I'm

Re: Diff on a database structure

2007-05-07 Thread Nigel Peck
en you can diff by subdir & only run what you need to rebuild for an update. I don't know if this helps or if this was already obvious to you. Thanks, Jen On Monday, May 07, 2007, at 09:14AM, "Nigel Peck" <[EMAIL PROTECTED]> wrote: Hi, When I'm developin

Diff on a database structure

2007-05-07 Thread Nigel Peck
Hi, When I'm developing web applications I have a dev version of the scripts, modules and database and a live version. Nothing new there. I'm trying to automate the process of moving the dev site to the live site (the dev sites are on a Fedora server on my desk and the live sites on a Redha

Detecting whether a script was called via CGI or the command line

2007-05-04 Thread Nigel Peck
Hi, I have a script which is usually run through CGI, but I want to set it up to be executed by a cron job each day too. Within the script I want to know where it was executed from; CGI or command line/cron job. I'm currently checking @ARGV to do this i.e. if there is data in @ARGV then it

Re: New to OO Perl

2007-05-03 Thread Nigel Peck
Thanks, I read 'Intermediate Perl' but I'll have a look at these too. Thanks to Ovid and Robert for your suggestions too. Cheers, Nigel Chas Owens wrote: On 5/2/07, Nigel Peck <[EMAIL PROTECTED]> wrote: Hi all, I'm new to writing Object Oriented Perl and am hop

New to OO Perl

2007-05-02 Thread Nigel Peck
Hi all, I'm new to writing Object Oriented Perl and am hoping for some advice? I found the need to use Image::Magick tonight and in order to reuse the code in future I put it in a package of subs. I then thought it seemed like a good opportunity to try writing an OO module so I did. Howev

Re: email text

2007-04-28 Thread Nigel Peck
Mathew wrote: I have a script which creates a text file for each of several users. However, the contents of the file are rarely enough to warrant it. I'd much rather place the information inside the email instead of attaching it as a file. I haven't been able to find anything to explain how to

Re: Sorting the items in a directory

2007-04-27 Thread Nigel Peck
Thanks Jeff, thanks Rob. I used your solution Jeff and it's working a treat. Cheers, Nigel Rob Dixon wrote: Nigel Peck wrote: Hi, I have a list containing the names of all items in a directory. I want to sort it by non-directories first and then directories, with a secondary so

Sorting the items in a directory

2007-04-27 Thread Nigel Peck
Hi, I have a list containing the names of all items in a directory. I want to sort it by non-directories first and then directories, with a secondary sort in alphabetical order. I currently have: my @items = sort { my $a_path = $args->{direc

Re: Uninstalling perl module

2007-04-15 Thread Nigel Peck
[EMAIL PROTECTED] wrote: Hi, Thanks for the reply, I think that I understand you point. Now I am starting to fear cpan installations. Is there a chance that by doing a simple - naive cpan installation of a module I, potentially, can damage another installed module? Hi Yaron, I think what the

Re: Bandwidth Generated

2007-04-14 Thread Nigel Peck
yitzle wrote: OK... I got this script that gets a lot of hits -> generates high bandwidth. Is there a simple way to check the amount of bytes printed to STDOUT so I can track the bandwidth it is generating? You may be able to get this information from your web server log files? If you're usin

use lib

2007-04-02 Thread Nigel Peck
Hi, I've recently starting writing my own modules. At the top of each script that uses my modules I do: use lib qw( /home/nigel/mis_perl_modules/dev ); while I'm developing them and then change it to: use lib qw( /home/nigel/mis_perl_modules/live ); once the modules are in live use. My qu

Re: Project Management

2007-04-02 Thread Nigel Peck
Edi STOJICEVIC wrote: Hi, Here are some I gave a try : * Planner --> http://live.gnome.org/Planner * GanttProject --> http://ganttproject.biz/ Dunno if they have all the features you're looking for ... Thanks Edi I'll have a look at them. -- To unsubscribe, e-mail: [EMAIL PROTEC

Project Management

2007-04-02 Thread Nigel Peck
Hi all, I'm interested to hear about any tools you know of that are good for managing perl development projects. Hope this is not off topic but it's Perl development that I want to manage so hoping someone on the list will know of something that fits the bill. I'm looking for the followin

Re: Help - using modules

2007-03-25 Thread Nigel Peck
Philip M. Gollucci wrote: I believe you hit 'circular dependencies'. While perl will actually let you do this, its bad style in any language. You should move common subroutines to an additional module and it it in the others. Just don't use the others in this new. Thanks Philip, I sorted o

Help - using modules

2007-03-25 Thread Nigel Peck
Hi, I have a collection of modules that I have written, each in their own package. At the start of each module file I have: package xxx::module_1; use strict; use warnings; use lib qw( /path/to/my/lib ); use xxx::module_2; use xxx::module_3; use xxx::module_4; use xxx::module_5; use Exp

Leaving a process to run through cgi

2006-12-18 Thread Nigel Peck
Hi, I need to start a process running through cgi and come back later to see if it is complete, either through refreshing the page or just by coming back and checking the page later. I need the prcess to run to completion if the user closes the browser. What should I be looking at in order

Perl/MySQL Email Newsletter

2006-12-13 Thread Nigel Peck
Hi, I need to setup an email newsletter system in Perl/MySQL. I had a look around and couldn't see any open source software that fits the bill. Any suggestions? If I was to write it myself, what's the best way to seup a Perl script to accept and handle incoming emails? Subscribe/unsubscribe

Re: Writing routines with future changes in mind

2006-12-07 Thread Nigel Peck
Jeff Pang wrote: I also think this is the best way for your purpose.You can pass a hash ref to subroutine,and store any arguments you want to be past > to the subroutine in that hash. > ... Thanks for this. I'm going to do this, I think you're right it seems to fit what I need. Mug wrote: >

Writing routines with future changes in mind

2006-12-07 Thread Nigel Peck
Hi all, I'm hoping to get some ideas on how to write my subs, specifically on passing variables into them and how best to do it. Currently I do this: example_sub ( $some_scalar, $some_hash_ref, 'some string' ); sub example_sub { my ( $passed_scalar, $passed_hash_ref, $passed_string

Re: Name of current sub

2006-11-15 Thread Nigel Peck
I wrote: Is there a way to get the name of the current sub? So: sub test_sub { $subname = ???; print $subname; # prints test_sub? } Sorry, just found it: http://www.unix.org.ua/orelly/perl/cookbook/ch10_05.htm sub test_sub { $subname = (caller(0))[3]; print $subname; # prin

Name of current sub

2006-11-15 Thread Nigel Peck
Is there a way to get the name of the current sub? So: sub test_sub { $subname = ???; print $subname; # prints test_sub? } Took a look through Programming Perl and Googled it but couldn't find the answer. TIA Nigel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Assigning to a list of variables from a regex

2006-11-11 Thread Nigel Peck
Thanks Rob and Dr Ruud, exactly what I needed to know :) Thanks for your input Sebastian :) Cheers, Nigel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Assigning to a list of variables from a regex

2006-11-11 Thread Nigel Peck
Hi all, I'm trying to get the following to work and can't. It's the assignment to $val1 and $val2 that's causing me the problem. my ( $val1, $val2 ) = $data =~ /^([^:]+):([^:]+)$/ || die 'Failed to parse data'; What am I doing wrong? I can do it on multiple lines by assigning $1 and

RE: Data File getting set to an empty file

2004-07-20 Thread Nigel Peck
Thanks for all that, any suggestions why the file gets wiped out every so often? -Original Message- From: Jenda Krynicky [mailto:[EMAIL PROTECTED] Sent: 14 July 2004 21:06 To: [EMAIL PROTECTED] Subject: Re: Data File getting set to an empty file From: "Nigel Peck" <[EM

Data File getting set to an empty file

2004-07-14 Thread Nigel Peck
Hi all, I have a (possible) problem with a script that records the number of page views for various pages on a site (full script below). Every so often (60 days or more) the data file (data.xml) loses all it's data and is still there but empty. Any suggestions greatly appreciated. Cheers, Nigel

Sorting Problems

2004-03-30 Thread Nigel Peck - MIS Web Design
Hi all, I'm sure I'm just being stupid here but I can't see where: I have an array of hash references that I'm trying to sort by one of the key/value pairs in the hashes (see code below). I get various errors, the current one being: Can't coerce array into hash at /web/secure.miswebdesign.com.o

Sorting Problems

2004-03-30 Thread Nigel Peck - MIS Web Design
Hi all, I'm sure I'm just being stupid here but I can't see where: I have an array of hash references that I'm trying to sort by one of the key/value pairs in the hashes (see code below). I get various errors, the current one being: Can't coerce array into hash at /web/secure.miswebdesign.com.o

Net::SMTP Problem - Bad Protocol

2004-02-06 Thread Nigel Peck - MIS Web Design
I have a problem with Net::SMTP running a Win32 server (groan). It works fine from the command line but when I try it through cgi I get: Net::SMTP: Bad protocol 'tcp' at... All help greatly appreciated :) Cheers, Nigel Managing Director MIS Web Design http://www.miswebdesign.com/ Administrato

RE: IIS Log File Conversion

2003-09-04 Thread Nigel Peck - MIS Web Design
003 04:58 > To: 'Nigel Peck - MIS Web Design' > Cc: '[EMAIL PROTECTED]' > Subject: RE: IIS Log File Conversion > > > > > > -Original Message- > > From: Nigel Peck - MIS Web Design [mailto:[EMAIL PROTECTED] > > Sent: Thursday, Septem

IIS Log File Conversion

2003-09-03 Thread Nigel Peck - MIS Web Design
Does anyone have a code snippet or a module for converting the IIS log file format to NCSA Common? Cheers, Nigel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: or operator

2003-09-03 Thread Nigel Peck - MIS Web Design
From: zsdc [mailto:[EMAIL PROTECTED] > Sent: 30 August 2003 18:16 > To: Nigel Peck - MIS Web Design > Cc: [EMAIL PROTECTED] > Subject: Re: or operator > > > Nigel Peck - MIS Web Design wrote: > > > In Perl can I say: > > > > if this = that or that or tha

or operator

2003-08-29 Thread Nigel Peck - MIS Web Design
In Perl can I say: if this = that or that or that instead of saying: if this = that or this = that or this = that Cheers, Nigel Managing Director MIS Web Design http://www.miswebdesign.com/ Administrator AccessifyForum.com http://www.accessifyforum.com/ -- To unsubscribe, e-mail: [EMAIL PR

Day of the week

2003-08-18 Thread Nigel Peck - MIS Web Design
Can someone please point me to the right module for getting the name of a specified day. e.g. I say 'year:2003 month:5 day:23' I get 'Friday' Thanks Nigel MIS Web Design http://www.miswebdesign.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

RE: Script's Name

2003-07-19 Thread Nigel Peck - MIS Web Design
Thanks all :) > -Original Message- > From: Kristofer Hoch [mailto:[EMAIL PROTECTED] > Sent: 17 July 2003 23:09 > To: [EMAIL PROTECTED] > Subject: Re: Script's Name > > > > --- Nigel Peck - MIS Web Design <[EMAIL PROTECTED]> wrote: > > Can so

Script's Name

2003-07-17 Thread Nigel Peck - MIS Web Design
Can someone please remind a forgetful idiot how to get the name of the script being run (the file itself)? Cheers, Nigel MIS Web Design http://www.miswebdesign.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Regular Expression (fwd)

2003-07-17 Thread Nigel Peck - MIS Web Design
? means minimal matching not maximal, so without the question mark it would match up to the second closing paren in the following line. ( test data ) ( more test data ) which is not what you want, it would match up to the last closing paren in the data you gave it, forgetting about newlines,

RE: Searching for a Perl Project to work on

2003-06-12 Thread Nigel Peck - MIS Web Design
Have you had a look on: http://www.sourceforge.net/ Plenty of projects on there. Cheers, Nigel MIS Web Design http://www.miswebdesign.com/ > -Original Message- > From: rajeev [mailto:[EMAIL PROTECTED] > Sent: 12 June 2003 14:38 > To: [EMAIL PROTECTED] > Subject: Searching for a Perl Pro

RE: Delivering Graphics over HTTP

2003-03-05 Thread Nigel Peck - MIS Web Design
:12:07 GMT\n"; print "Content-type: image/jpg\n"; print "ETag: \"518394-1a79-3e5e2ac7\"\n"; print "Accept-Ranges: bytes\n"; print "Content-Length: 6777\n\n"; print read_file($location); -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-= >

Delivering Graphics over HTTP

2003-02-28 Thread Nigel Peck - MIS Web Design
I need to deliver graphic files (jpg and gif) over http in the same manner that a web server would. Can anyone point me in the right direction? Setting the mime type is no problem but it's the rest that I have no experience of. In the past I've always simply done a location: /path/to/graphic but th

RE: Cookies, CGI

2003-02-27 Thread Nigel Peck - MIS Web Design
are the only option. Cheers Nigel > -Original Message- > From: R. Joseph Newton [mailto:[EMAIL PROTECTED] > Sent: 27 February 2003 23:34 > To: Nigel Peck - MIS Web Design > Cc: CGI List; [EMAIL PROTECTED] > Subject: Re: Cookies, CGI > > > Nigel Peck - MIS Web

RE: Cookies, CGI

2003-02-27 Thread Nigel Peck - MIS Web Design
ond script but Mozilla doesn't. Cheers for the advice I'll look that one up. Nigel > -Original Message- > From: Dan Muey [mailto:[EMAIL PROTECTED] > Sent: 27 February 2003 23:49 > To: R. Joseph Newton; Nigel Peck - MIS Web Design > Cc: CGI List; [EMAIL PROTECTED] &g

Cookies, CGI

2003-02-27 Thread Nigel Peck - MIS Web Design
I'm trying to set a cookie and have it returned to the script before the user has to visit another page. I'm currently doing it like this: Original Cookie already set User request -> Script returns Set-cookie and Refresh to second script Second script called with original cookie, not new one User

RE: What is the and operator in perl

2003-01-30 Thread Nigel Peck - MIS Web Design
you can use "and" or "&&". if (($a==$b) && ($d==$e)) { # code here } and has a lower precedence than &&. For or there's "or" or "||" HTH Nigel MIS Web Design http://www.miswebdesign.com/ > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 30 Janu

RE: PERL\CGI question...

2002-12-31 Thread Nigel Peck - MIS Web Design
You should be able to write a script to use chmod to do it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 31 December 2002 15:25 To: [EMAIL PROTECTED] Subject: PERL\CGI question... The ISP that I use seems to be always restoring files with the result that a

Bad file descriptor Net::FTP

2002-12-29 Thread Nigel Peck - MIS Web Design
I'm getting Bad file descriptor doing $ftp->ls(), anyone had this? Running from Win2k to a Solaris ftp server. TIA Nigel MIS Web Design http://www.miswebdesign.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: remote hard drive stat

2002-12-16 Thread Nigel Peck - MIS Web Design
PROTECTED]] Sent: 16 December 2002 21:37 To: 'Nigel Peck - MIS Web Design' Subject: RE: remote hard drive stat I have 10 windows nt and 2000 server that I want disk info on. The info that I would like is free space and used space. Thomas Browner Digidyne, Inc Technical Engineer (251)479-

RE: Full Screen

2002-12-16 Thread Nigel Peck - MIS Web Design
Windows probably won't see it as a DOS app so that'll be why. Have you tried alt and enter (together) to get it off full screen, then right click on the top left and properties, change the properties, click ok, then save setting for future windows with same title. HTH Nigel MIS Web Design http://

RE: perl & MySQL

2002-11-12 Thread Nigel Peck - MIS Web Design
my $sql = "SELECT * FROM table WHERE"; foreach $record_id ($record_ids) { $sql .= " record_id EQ $record_id OR "; } Needs some tweeking but hopefully you get the idea (the last one needs to not include the OR). HTH Nigel -Original Message- From: Mariusz [mailto:mkubis22@;hotmail

RE: How to check server for perl setup?

2002-11-02 Thread Nigel Peck - MIS Web Design
ovember 2002 11:48 To: Nigel Peck - MIS Web Design; [EMAIL PROTECTED] Subject: RE: How to check server for perl setup? Hi Nigel, Thanks for the info! I have the below entry in my httpd.conf file. Is this basically all I need to enable perl? Dan LoadModule perl_modulemod

RE: How to check server for perl setup?

2002-11-02 Thread Nigel Peck - MIS Web Design
You can check that perl is there by asking for it's version /usr/bin/perl -v You will need to check your Apache configuration file httpd.conf to make sure that Perl is enabled. The Apache documentation should help you there. Not sure about the books, Apache help and lists usually help enough for

Re: PERL Compiler

2002-08-29 Thread Nigel Peck
As you're a newbie, I thought I'd mention that you don't need to compile your Perl code, it's done for you by the interpreter before being run. The interpreter for Win2k is at http://www.activestate.com/ You probably already know but just in case... Nigel >>> "Michael Edwards" <[EMAIL PROTECTE

Re: Removing files------help

2002-07-31 Thread Nigel Peck
You could use sessions, base the file names on the session numbers, and keep a list of open session (i.e. not completed) and the time they were last accessed, you could have a job run every half hour to remove session files not used for a certain time period. Or there's probably a better way, but

Re: Avoid using backticks

2002-07-29 Thread Nigel Peck
You should be able to do it with opendir (to open directories and browse the contents) and unlink (to delete files) take a look at the man pages for those two to get you started, if you're still struggling just ask again. HTH Nigel >>> "NYIMI Jose (BMB)" <[EMAIL PROTECTED]> 07/29/02 08:37am

Re: NET

2002-07-22 Thread Nigel Peck
You could just execute the same commands you already are (with backticks round them to make the shell handle them) `net use u: /del` `do net use u:` There may be some Win32:: modules on CPAN for mapping drives to do it a different way. TMTOWTDI. Nigel >>> Javeed SAR <[EMAIL PROTECTED]> 07/22/

Re: Can't Get Perl to Work on Win2K PC

2002-07-16 Thread Nigel Peck
> Why not "Start" -> "Run" -> notepad c:\autoexec.bat > :- ) Because it's outdated, it's empty these days, things are done through the registry. :-) >>> "Connie Chan" <[EMAIL PROTECTED]> 07/16/02 11:15am >>> > Or if you've already done that then check that perl.exe is in your PATH. > Type

Re: Can't Get Perl to Work on Win2K PC

2002-07-16 Thread Nigel Peck
Or if you've already done that then check that perl.exe is in your PATH. Type path at a command prompt and look for something like c:\perl\bin if it's not there then do path = %path%;c:\perl\bin Replace c:\perl\bin with the correct path to your bin directory To make the changes to the path per

Re: Windows NT / 2000 Services

2002-07-15 Thread Nigel Peck
There isn't. However, you might be able to get what you want from the net command. At a command prompt net services will tell you which services can be started, from which you could derive which ones are already started. You might be able to get some information from the registry but I'm not su

Re: Problem adding to @INC

2002-07-10 Thread Nigel Peck
Try require "scriptname.pl"; or use lib "c:\path\to\directory" or Put the file in c:\perl\site\lib HTH Nigel >>> <[EMAIL PROTECTED]> 07/10/02 03:18am >>> Hi, I'm very new to perl, although I've used many other languages for CGI/DB programming. I think this must be a simple problem, but I'

Re: Win32::AdminMisc Help!

2002-07-10 Thread Nigel Peck
To install the CPAN module you'd have to do the following Open a command prompt and go to the directory where you unpacked the download. Enter: perl makefile.pl This will prepare the module for compiling. You will then need a C compiler such as nmake (which comes with visual studio) and do nmak

iconv and libxml system libraries - win32

2002-07-04 Thread Nigel Peck
Can someone please explain to me how to install the above properly? I downloaded them from: http://www.fh-frankfurt.de/~igor/projects/libxml/index.html I copied the dlls to winnt\system32 and the libs to my compiler's include directory but I still can't install AxKit. Thanks Nigel ITM Busines

PPM3 Problems

2002-07-04 Thread Nigel Peck
Having just upgraded from ActivePerl build 631 to 633 when I try to run ppm3 I get the following error message: Panic: Can't find bfs section Any ideas? ITM Business Solutions Unit 4 Nine Trees Trading Estate Morthen Road Rotherham S66 9JG Reception Tel: 01709 703288 Fax: 01709 701549 Help D

Re: Regular Expression Help sought

2002-07-04 Thread Nigel Peck
ohnson wrote: > > > > > > I think you'll need 2 blank lines. > > > > -Original Message- > > From: Sunish Kapoor > > To: Nigel Peck > > Cc: [EMAIL PROTECTED] > > Sent: 7/3/02 6:51 PM > > Subject: Re: Regular Expression Help sough

RE: \p4view

2002-07-03 Thread Nigel Peck
this to happen if you ran a verify --upgrade from PPM. You may also have problems with the Windows Installer holding up your system for a while trying to "fix" your ActivePerl installation if you don't explicitly run your scripts through the interpreter ala "perl myscript.pl&quo

c:\p4view

2002-07-03 Thread Nigel Peck
I've been having a lot of problems installing modules on my Win2K system (as some of you may remember). While installing a module today it said "could not find "C:\p4view\Apps\ActivePerl\MSI\data\ActivePerl\Perl\lib\CORE\perl.h" None of that directory structure exists on my system and never has.

PPM3 Repositories

2002-07-03 Thread Nigel Peck
Are there any other PPM repositories worth noting other than the standard ActiveState ones? (I know about the Mod_Perl one) Thanks Nigel ITM Business Solutions Unit 4 Nine Trees Trading Estate Morthen Road Rotherham S66 9JG Reception Tel: 01709 703288 Fax: 01709 701549 Help Desk Tel:01709 530

RE: PPM3 - libwww-perl

2002-07-03 Thread Nigel Peck
wnload? ActiveState only has a limited module repository. http://www.activestate.com/PPMPackages/5.6plus/ Rob -Original Message- From: Nigel Peck [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 5:54 AM To: [EMAIL PROTECTED] Subject: PPM3 - libwww-perl When I try to in

PPM3 - libwww-perl

2002-07-03 Thread Nigel Peck
When I try to install libwww-perl through ppm3 from the ActiveState repository I get Error: PPD for 'R:/inetpub/wwwroot/www2.activestate.com/PPMPackages/5.6-plus/libwww-perl.ppd' could not be found. Am I doing anything wrong? I've tried it on 2 machines and they both give the same error. ITM

Re: How to Tweek The DOS Prompt

2002-07-03 Thread Nigel Peck
You can create a shortcut to command.com (win9x) or cmd.exe (winNT, Win2k, WinXP) and put the directory you want in the start-in bit of the shortcut properties. >>> "Yasen Petrov" <[EMAIL PROTECTED]> 07/03/02 05:41am >>> Hi there, Anytime I run the DOS prompt it shows: C:\WINDOWS\Desltop>. And I

Re: Question about copying files.

2002-07-02 Thread Nigel Peck
Yes you're right, sorry. (darn case sensitivity :-) >>> Felix Geerinckx <[EMAIL PROTECTED]> 07/02/02 09:55am >>> on Tue, 02 Jul 2002 08:50:37 GMT, Nigel Peck wrote: > I would suggest using file::copy instead of `cp` for security reasons, > especially within a

Re: Question about copying files.

2002-07-02 Thread Nigel Peck
I would suggest using file::copy instead of `cp` for security reasons, especially within a CGI script. (and it's more portable) >>> <[EMAIL PROTECTED]> 07/02/02 08:40am >>> I've got a script that parses out a mail file into an array then uses the print command to copy the array to another locati

Re: Question about copying files.

2002-07-02 Thread Nigel Peck
perldoc file::copy >>> <[EMAIL PROTECTED]> 07/02/02 08:40am >>> I've got a script that parses out a mail file into an array then uses the print command to copy the array to another location. Effectively I'm just copying one file from its original location to another location, I'm using a cgi s

Re: extract info from file name

2002-07-02 Thread Nigel Peck
(.{4})(.{6})\.(.{3})$/ ) { $first_part = $1; $second_part = $2; $third_part = $3; $extension = $4; } else { print "It failed"; } HTH Nigel >>> "Nigel Peck" <[EMAIL PROTECTED]> 07/02/02 09:01am >>> my $test = "Rnott230602.txt"; $

Re: extract info from file name

2002-07-02 Thread Nigel Peck
my $test = "Rnott230602.txt"; $test =~ m/^(.{1})(.{4})(.{6})\.(.{3})$/; my $first_part = $1; my $second_part = $2; my $third_part = $3; my $extension = $4; >>> <[EMAIL PROTECTED]> 07/02/02 08:23am >>> Hi filenameRnott230602.txt I want to break down the name and compare with other text, it b

Re: Need some help

2002-07-01 Thread Nigel Peck
Could you please make it clear what you want to do (unless I'm missing the point) when you say you want to change the #include lines to their entry. Do you meant you want to put the data from the file in instead of the #include line? >>> Mariusz Wyrozebski <[EMAIL PROTECTED]> 07/01/02 03:29pm >>

RE: split

2002-07-01 Thread Nigel Peck
Ernie, I'm assuming that @offline is an array of lines, so: foreach $offline (@offline) { print MAIL "$offline\n"; $offline =~ m/(.{4}\..{4}\..{4})/; $nodes=`/home/etucker/jvlresolve.pl $1`; print MAIL "$nodes\n"; } Give it a try, I haven't tested it again, the /g modifier o

CPAN Modules continued

2002-06-27 Thread Nigel Peck
Please excuse the stupid question but I'm trying to get my head round too many things at once and I could do witha quick explanation please. I'm trying to follow the perl makefile.pl make make test make install However, I have no program on my system called make. I'm running Perl 5.6.0 on Win2k

HTML/XML in-line code solutions

2002-06-26 Thread Nigel Peck
Does anyone know of an in-line code interpreter like PHP but using Perl with the syntax for indicating code. Or, does anyone know how to change Apache::ASP to use

  1   2   >