RE: cgi script that takes in data then runs script on different host

2002-05-28 Thread David Gray
First of all, don't cross-post please. One list is quite sufficient, and many people are subscribed to more than one list, so duplicate messages are quite often completely ignored. I've got a cgi form that takes in data. Then, I want the data to be passed to a script that's waiting on a

calculate dates

2002-05-28 Thread Sven Bentlage
Hi ! I'm trying to get all the date values for the week (7days) ahead of a specified date. To get the current date I use : my ($d, $m, $y) = (localtime)[3,4,5]; my $date = sprintf(%02d-%02d-%02d,

[OT] Web Hosting

2002-05-28 Thread Glenn Cannon
Hi All, I know this is kind of topic, but I figured with all the CGI experience I have seen on this list, someone must have already been through this situation. I am a website developer who builds sites for local business/groups/individuals. Many of the people I build for are then looking for

Re: calculate dates

2002-05-28 Thread fliptop
Sven Bentlage wrote: I'm trying to get all the date values for the week (7days) ahead of a specified date. try date::calc http://search.cpan.org/search?dist=Date-Calc -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Using strict and configuration files

2002-05-28 Thread Octavian Rasnita
Hi all, I want to use: use strict; And I want to use a configuration file in a Perl script. The configuration file uses: %page1=( ); %page2=( ); This way I get errors if I run the script because the variables are not defined with my. I've tried putting in the configuration file:

What type of end of line is this?

2002-05-28 Thread Octavian Rasnita
Hi all, I've made a little experiment. I made a simple form with a textarea field. I've typed a single digit in that field and I have submitted the form. It was a single digit, with no enter after it. I've saved the field to a file. The file has 3 bytes instead of 1 (for a LF) or 2 for CRLF. I

Verifying the CONTENT_LENGTH

2002-05-28 Thread Octavian Rasnita
Hi all, I've made a script for uploading files. I want to verify the CONTENT_LENGTH. I know how to do it and it works. The problem is that for verifying the CONTENT_LENGTH, the page visitor should wait a long time if the file is bigger, like the time for uploading the file. The visitor may

Re: cgi script that takes in data then runs script on different host

2002-05-28 Thread Todd Wade
Simon K. Chan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... cgi script on host 1pass $name to host 2 script on host 2 # get $name --- print hi there $name!\n; Somewhere at the top of scriptOnHost1.cgi say:

Re: help! windows makes ^M in my forms?

2002-05-28 Thread Martin A. Hansen
hi drieux i had a look on you snippet of code. very neat, i didnt know =cut :))). however, im not happy with the regexing solution, since i cant get it to work: $scalar =~ s/\015\012?|\012/\n/g; what is this ^M anywat? carrige return? reading the perldoc -f chomp doesnt tell me if chomp

Re: Thanks for the books recommendation

2002-05-28 Thread Felix Geerinckx
on Mon, 27 May 2002 22:26:17 GMT, [EMAIL PROTECTED] (Patrick Dempster) wrote: A while ago I posted to the list a question asking if I should buy the perl cookbook, I was a bit concerned that the book would be out of date because of all the talk about perl 6 and such like, With respect to

Re[2]: Access to http:// via e-mail request

2002-05-28 Thread Babichev Dmitry
Hello, Langa. You wrote 28 ìàÿ 2002 ã., 10:08:51: LK Greetings Babichev, LK Can I offer you a non-perl solution to this problem, though I know that you LK might actually want the solution in perl (I would for the fun of it), there LK is a package called procmail which is very good at doing

Encryption with rijandael.

2002-05-28 Thread Postman Pat
Greetings, I am looking for basic examples of how I would go about doing encryption using rijandael. For instance, I wanna take a text file $file and encrypt it with a given key $key and write it to file $cryptfile. Any ideas? Thanks in advance. Regards LK -- To unsubscribe, e-mail:

perl one-liner for find-exec-rm

2002-05-28 Thread Gary Stainburn
Hi all, Can anyone give me the one-liner to replace find . -type f -exec rm {} \; with find . -type f |perl -? to improve the speed when deleting a large squid cache -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by

Re: perl one-liner for find-exec-rm

2002-05-28 Thread Gary Stainburn
On Tuesday 28 May 2002 9:42 am, Gary Stainburn wrote: Hi all, Can anyone give me the one-liner to replace find . -type f -exec rm {} \; with find . -type f |perl -? to improve the speed when deleting a large squid cache sorry, I forgot to include how far I've got. Where's

Re: help! windows makes ^M in my forms?

2002-05-28 Thread Felix Geerinckx
on Mon, 27 May 2002 14:31:04 GMT, [EMAIL PROTECTED] (Martin A. Hansen) wrote: my nice cgi forms works beautiful under konq on linux. but the windows machine generates ^M at the and of lines? this makes eval go fubar? how can i prevent this??? There seems to be a lot of confusion about the

Re: perl one-liner for find-exec-rm

2002-05-28 Thread Felix Geerinckx
on Tue, 28 May 2002 08:42:03 GMT, [EMAIL PROTECTED] (Gary Stainburn) wrote: Hi all, Can anyone give me the one-liner to replace find . -type f -exec rm {} \; with find . -type f |perl -? to improve the speed when deleting a large squid cache perldoc find2perl

RE: Access to http:// via e-mail request

2002-05-28 Thread Langa Kentane
Greetings Babichev, Can I offer you a non-perl solution to this problem, though I know that you might actually want the solution in perl (I would for the fun of it), there is a package called procmail which is very good at doing things like this, assuming that you're using Unix of course. Why

Re: Encryption with rijandael.

2002-05-28 Thread Felix Geerinckx
on Tue, 28 May 2002 07:37:24 GMT, [EMAIL PROTECTED] (Postman Pat) wrote: Greetings, I am looking for basic examples of how I would go about doing encryption using rijandael. For instance, I wanna take a text file $file and encrypt it with a given key $key and write it to file $cryptfile.

Re: perl one-liner for find-exec-rm

2002-05-28 Thread Gary Stainburn
On Tuesday 28 May 2002 10:00 am, Felix Geerinckx wrote: on Tue, 28 May 2002 08:42:03 GMT, [EMAIL PROTECTED] (Gary Stainburn) wrote: Hi all, Can anyone give me the one-liner to replace find . -type f -exec rm {} \; with find . -type f |perl -? to improve the

Re: perl one-liner for find-exec-rm - SOLVED

2002-05-28 Thread Sudarsan Raghavan
Gary Stainburn wrote: Hi all, I added a chomp giving - find . -type f|perl -ne 'chomp ; unlink||die $_ : $!\n' You could avoid the pipes and try this instead perl -MFile::Find -e 'find (sub {unlink|| die $File::Find::name : $!\n if (-f)}, .)' and it worked. Gary On Tuesday 28 May

Re: help! windows makes ^M in my forms?

2002-05-28 Thread Felix Geerinckx
on Tue, 28 May 2002 08:57:52 GMT, [EMAIL PROTECTED] (Felix Geerinckx) wrote: There seems to be a lot of confusion about the line separators in [...] default text. Damn, this stuff is much better explained in perldoc perlport under the 'Newlines' issue. (I should read the docs

Shredding a file

2002-05-28 Thread Langa F. Kentane
Greetings, How would I go about shredding a file with perl, for instance, I have a script opening a time file, writing something in there and then deleting the temp file when execution is done. How would I go about securely deleting the temp file afterwards so that prying eyes can't read it

RE: Shredding a file

2002-05-28 Thread Jackson, Harry
-Original Message- From: Langa F. Kentane [mailto:[EMAIL PROTECTED]] Greetings, How would I go about shredding a file with perl, for instance, I have a script opening a time file, writing something in there and then deleting the temp file when execution is done. How

RE: Shredding a file

2002-05-28 Thread Anders Holm
Hi folks! Of relevance her would be what OS you are on as well. Windows Solaris Linux Mac Other? Why? Because different OS's treat this differently. Anyone here ever tried to get back a deleted file on a Unix box? Not a very fun prospect. If you are doing this on some *nix box, do not worry

Re: Shredding a file

2002-05-28 Thread Sudarsan Raghavan
Anders Holm wrote: Hi folks! Of relevance her would be what OS you are on as well. Windows Solaris Linux Mac Other? Why? Because different OS's treat this differently. Anyone here ever tried to get back a deleted file on a Unix box? Not a very fun prospect. I am not sure this what

Re: Shredding a file

2002-05-28 Thread David T-G
Langa -- ...and then Langa F. Kentane said... % % Greetings, % How would I go about shredding a file with perl, for instance, I have a ... % temp file afterwards so that prying eyes can't read it afterwards? You've seen some suggestions on how to overwrite the file. The truth is that, if

total newbie - to programming and to perl

2002-05-28 Thread TAWN Jonathan
Hi.. Just joined the list so thought I better say hello ... I'm 22 and from the UK ... I work in IT (desktop / server support) but want to learn perl.. the main reason is I'm going to use a piece of software called misterhouse for some home automation stuff, and that's written in perl - and

Re: Shredding a file

2002-05-28 Thread Jonathan E. Paton
Greetings, How would I go about shredding a file with perl, for instance, I have a script opening a time file, writing something in there and then deleting the temp file when execution is done. How would I go about securely deleting the temp file afterwards so that prying eyes can't

RE: total newbie - to programming and to perl

2002-05-28 Thread TAWN Jonathan
Hi.. What are these perdoc perl and perldoc perltoc ?? - I have NO idea !! Any help appreciated. Jonathan TAWN Jonathan wrote: Hi.. I think you hit reply and not reply all :-) Just joined the list so thought I better say hello ... I'm 22 and from the UK ... I work in IT (desktop

Kick ass group...

2002-05-28 Thread Khoury, Chris C SEOP-OEIRN
Howde Guys and Girls, I'm not even a beginner when it comes to Perl, I'm the flea on the Plebs back who's making coffee for the Perl beginner actually. However, I am going through the O'Reilly Lama book which seems to be going at a pace I can follow... I have been massively impressed with the

Re: total newbie - to programming and to perl

2002-05-28 Thread Sudarsan Raghavan
TAWN Jonathan wrote: Hi.. What are these perdoc perl and perldoc perltoc ?? - I have NO idea !! perldoc is a utility that comes along with the standard perl distribution similar to man on unix (man perl and man perltoc would also work) type perldoc perl on the command line and see what

Re: Shredding a file

2002-05-28 Thread Sudarsan Raghavan
Sudarsan Raghavan wrote: Anders Holm wrote: Hi folks! Of relevance her would be what OS you are on as well. Windows Solaris Linux Mac Other? Why? Because different OS's treat this differently. Anyone here ever tried to get back a deleted file on a Unix box? Not a very

RE: total newbie - to programming and to perl

2002-05-28 Thread TAWN Jonathan
Ahh.. right Ok.. it's a redhat linux 7.2 install I have, with gnome.. (this is at home) and I have a (hateful) win 98 pc here at work. Apologies for sounding so dim, but, will either of these machines have perl installed ? If I don't have perl, can I download it from the web? - if so, where

Re: total newbie - to programming and to perl

2002-05-28 Thread Sudarsan Raghavan
TAWN Jonathan wrote: Ahh.. right Ok.. it's a redhat linux 7.2 install I have, with gnome.. (this is at home) and I have a (hateful) win 98 pc here at work. linux comes with a default perl installation (/usr/bin/perl, /usr/bin/perldoc) for win 98 you can download from www.activestate.com

Re: Shredding a file

2002-05-28 Thread Sudarsan Raghavan
Jonathan E. Paton wrote: Greetings, How would I go about shredding a file with perl, for instance, I have a script opening a time file, writing something in there and then deleting the temp file when execution is done. How would I go about securely deleting the temp file

RE: Shredding a file

2002-05-28 Thread Nikola Janceski
I think if you want the file contents to be completely UNRECOVERABLE you must.. MUST change the contents of the file to some value other that it is.. I just usually fill the file up with ZEROs until the size is the same as it orginally was. Then I delete it. -Original Message- From:

RE: total newbie - to programming and to perl

2002-05-28 Thread Khoury, Chris C SEOP-OEIRN
www.download.com Active Perl Chris Khoury Operational Support Shell International Petroleum Company Limited Shell Centre, London SE1 7NA, United Kingdom Tel: +44 (0)20 7934 4190 Fax: 7351 Email: Internet: http://www.shell.com -Original Message- From: TAWN Jonathan [mailto:[EMAIL

RE: total newbie - to programming and to perl

2002-05-28 Thread TAWN Jonathan
*logs onto web... tap tap tap... ahh.. download* I shall take a look when I have 5 mins Thanks! Jonathan -Original Message- From: Khoury, Chris C SEOP-OEIRN [mailto:[EMAIL PROTECTED]] Sent: 28 May 2002 13:46 To: '[EMAIL PROTECTED]' Subject:RE: total newbie - to

Re: bounces from list memeber(s)?

2002-05-28 Thread Tim Musson
Hey Kari, My MUA believes you used The Bat! (v1.60m) to write the following on Monday, May 27, 2002 at 4:07:09 PM. KJ Hello Perl Beginners, KJ On Mon, 27 May 2002, 09:28:16 h [GMT -0400] (which KJ was 15:28:16 h [GMT +0200] where I live) Tim Musson wrote: Any one else having problems with

reference to an array

2002-05-28 Thread William West
drieux [EMAIL PROTECTED] has kindly answered my question about $/ to change the way a loop parses text but his answer uses stuff which i am not familiar with yet: drieux wrote... b) you might want to pass in a reference to the array - and fill it up

checking for an empty string

2002-05-28 Thread lz
Hi guys, while($line = STDIN) { if ($line =~ /^email address/) { } } How can I check if $line contains a value or is empty? Thanks a lot! __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup

Re: checking for an empty string

2002-05-28 Thread Tor Hildrum
From: lz [EMAIL PROTECTED] Date: Tue, 28 May 2002 07:08:52 -0700 (PDT) To: [EMAIL PROTECTED] Subject: checking for an empty string Hi guys, while($line = STDIN) { if ($line =~ /^email address/) { } } How can I check if $line contains a value or is empty? chomp $line; #

RE: checking for an empty string

2002-05-28 Thread Nikola Janceski
umm.. there's several ways. The following assumes you chomped the line already. see perldoc -f chomp if length($line) if $line # assuming it won't just have a 0 in it. if $line !~ /^$/ -Original Message- From: lz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 10:09 AM To:

RE: pattern matching

2002-05-28 Thread David Gray
I have a list of the following format that I want to parse:- ((sa1 da1 sp1 dp1 p1) (sa2 da2 sp2 dp2 p2) (saN daN spN dpN pN) ) there are N entries. There are many such lists and N varies in each list. One way to parse this is to use brute force and use sth like the

Re: reference to an array

2002-05-28 Thread David vd Geer Inhuur tbv IPlib
Hi Willy, What does push and what is $_ That will probably be your question. Here is one example : open(FH, $file); while FH { ## FH is the File Handler we just openened with open ## We do something with ?? ## Yes, no var is set but instead we use $_ for the current line. ## Now we

Re: checking for an empty string

2002-05-28 Thread David vd Geer Inhuur tbv IPlib
while (STDIN) { if (!($_)) { if(m/^email address/) { } } } I think you want to be shure that you have input, so you match only if the current line is not empty. Regs David -- Hi guys, while($line = STDIN) { if ($line =~ /^email address/) {

RE: Shredding a file

2002-05-28 Thread Jonathan E. Paton
--- Nikola Janceski [EMAIL PROTECTED] wrote: I think if you want the file contents to be completely UNRECOVERABLE you must.. MUST change the contents of the file to some value other that it is... I just usually fill the file up with ZEROs until the size is the same as it orginally was. Then

RE: Shredding a file

2002-05-28 Thread Nikola Janceski
oh yeah... forgot that... but I assumed (ass me) that the person who wanted the security would be running it. (I have a few scripts that do that, but only I run it). 8^) Thanx for the save Jon -Original Message- From: Jonathan E. Paton [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May

RE: Shredding a file

2002-05-28 Thread Langa Kentane
Well, reasonable security is fine, but the idea of writing zeroes to the file does not appeal to me, If I can't get any other way I guess I will have to use that. -Original Message- From: Jonathan E. Paton [mailto:[EMAIL PROTECTED]] Sent: 28 May 2002 05:24 PM To: [EMAIL PROTECTED]

RE: Shredding a file

2002-05-28 Thread Jonathan E. Paton
--- Langa Kentane [EMAIL PROTECTED] wrote: Well, reasonable security is fine, but the idea of writing zeroes to the file does not appeal to me, If I can't get any other way I guess I will have to use that. Allow me to assume you are using Unix... you have a hopeless cause if you are using

sending mail from Perl redirecting from a file

2002-05-28 Thread lz
Hi guys, open TMP, /home/dev/perl/mail_queue/$filename or die Can't create file: $!; I read an incoming file, modify it and save it in the file, as seen above. Later on, I'd like to send the above generated file: I try the following, but it doesn't work. open MSG, |mailx -s \test\

Re: sending mail from Perl redirecting from a file

2002-05-28 Thread Ricardo Derbes
You can use MIME:Lite module, its very easy and self-explanatory... Regards Ricardo Derbes Altec SE Albarracín 157 - San Carlos de Bariloche +54-2944-426892 [EMAIL PROTECTED] - Original Message - From: lz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 28, 2002 12:57 PM

Re: Shredding a file

2002-05-28 Thread Shawn
You should use encrypted swap if you're having to shred files. If someone is industrious enough to snorgle through device bits to snag the info they want, sure enough they're not going to stop at the FS... On 05/28, Jonathan E. Paton said something like: --- Langa Kentane [EMAIL PROTECTED]

Re: Shredding a file

2002-05-28 Thread David T-G
Langa -- ...and then Langa Kentane said... % % Well, reasonable security is fine, but the idea of writing zeroes to the % file does not appeal to me, If I can't get any other way I guess I will have % to use that. I still say that you shouldn't use a temp file at all; then you only have to

Re: Shredding a file

2002-05-28 Thread Shawn
Don't use %ENV to store anything, and try to keep you're data in some sort of secure form in memory (encrypted or something). There are system level things to keep your data safe, and application level methods. I prefer to use both methods if I can. No amount of wiping and encrypting is going

Re: checking for an empty string

2002-05-28 Thread Roberto Ruiz
Hi, God bless you. Assuming you are trying to read a line which contains: email addres: [EMAIL PROTECTED] Then you can use the postmatch variable ($') to look at the rest of the line (watch also for the change on the regexp that strips the ':' and any spaces after it). On Tue, May 28, 2002 at

Re: checking for an empty string

2002-05-28 Thread Roberto Ruiz
Ops, forgot to change blank for \s in regexp: On Tue, May 28, 2002 at 11:34:09AM -0500, Roberto Ruiz wrote: Hi, God bless you. while($line = STDIN) { if ($line =~ /^email\saddress:\s*/) ^^ also change this. { See you Roberto Ruiz -- A train stops

Trouble openign a file

2002-05-28 Thread Eric Preece
Hello, I am new to perl and having trouble with a script I wrote to publish some data in an rss format. The script works great from the command prompt but dies when I use input from a web form. The error is No such file or directory for my template. The file is there and I have no trouble

CGI Images

2002-05-28 Thread A. Rivera
Anyone have a working script or reference link to a cgi script that can spit out images? I'm trying to use this... img src=image.cgi to display an image, but it never comes out. The cgi spits it out as if it were text. Anyway, I really would like to see a working copy. Please don't

Re: sending mail from Perl redirecting from a file

2002-05-28 Thread A. Rivera
Try system(cat home/dev/perl/mail_queue/$filename | mailx -s \test\ $mailAddress ); Regards, Agustin Rivera Webmaster, Pollstar.com / PollstarOnline.com - Original Message - From: lz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 28, 2002 8:57 AM Subject: sending mail from

Re: Shredding a file

2002-05-28 Thread David T-G
Shawn, et al -- ...and then Shawn said... % % Don't use %ENV to store anything, and try to keep you're data in some Right! % sort of secure form in memory (encrypted or something). Now that's an interesting one... Suppose someone feeds this script a password or a credit card number or such

Re: Trouble openign a file

2002-05-28 Thread Felix Geerinckx
on Tue, 28 May 2002 16:48:55 GMT, Eric Preece wrote: Hello, I am new to perl and having trouble with a script I wrote to publish some data in an rss format. The script works great from the command prompt but dies when I use input from a web form. What happens if you prepend all your bare

Re: CGI Images

2002-05-28 Thread Felix Geerinckx
on Tue, 28 May 2002 16:54:11 GMT, A. Rivera wrote: Anyone have a working script or reference link to a cgi script that can spit out images? I'm trying to use this... See Randal Schwartz' Web Techniques Column 60 on Embedding a dynamic image in CGI output at

e-mailing with DBI

2002-05-28 Thread rory oconnor
I manage my mailing lists (yes, the are opt-in) in mysql and operate on it with perl. However, the missing piece right now is the mailing execution element. I'd like to create a perl script that will mail each one of my receipients a personalized message. I can create and send the message, but

Re: CGI Images

2002-05-28 Thread JP Cartailler
Why don't you try to include the script using SSI (via .shtml) A good reference is here: http://httpd.apache.org/docs/howto/ssi.html#executingcommands i.e. !--#exec cmd=/path/to/your/cgi-bin/image.cgi -- when the page loads, the script will be executed and the image displayed. best JP

Re: calculate dates

2002-05-28 Thread drieux
On Tuesday, May 28, 2002, at 09:25 , Sven Bentlage wrote: Hi ! I'm trying to get all the date values for the week (7days) ahead of a specified date. To get the current date I use : my ($d, $m, $y) = (localtime)[3,4,5];

Re: calculate dates

2002-05-28 Thread Felix Geerinckx
on Tue, 28 May 2002 17:53:27 GMT, Drieux wrote: use constant SECONDS_PER_DAY (24*60*60); [...] you may want to do the perldoc on constant - since this will help you with more on how to think about writing self documenting code You may want to take a look yourself, since your

Re: Trouble openign a file

2002-05-28 Thread drieux
On Tuesday, May 28, 2002, at 09:48 , Eric Preece wrote: [..] # # sub to get rss input from htm form and write it to a file # sub getInput { [..] my $template = rss_outtemplate.htm; my $tempHTML =''; my $fullOutfile =

Re: Shredding a file

2002-05-28 Thread drieux
On Tuesday, May 28, 2002, at 05:27 , Jonathan E. Paton wrote: [..] Never rely totally on software based security. There is no point installing/writing lots of security software if your system admin is a KGB agent, or your cleaner can access your computer system. EVERY computer can

Re: reference to an array

2002-05-28 Thread drieux
On Tuesday, May 28, 2002, at 06:22 , William West wrote: [..] drieux wrote... b) you might want to pass in a reference to the array - and fill it up push( @$array_ref, $_ ) [..] i almost understand this- not really though... I shall presume you got David's

Re: Shredding a file

2002-05-28 Thread Michael Fowler
On Tue, May 28, 2002 at 07:33:46AM -, Langa F. Kentane wrote: How would I go about shredding a file with perl You should probably take a look at http://rr.sans.org/unix/sec_files.php which sums up the need for shredding files securely. Notice the article talks about scanning the hard drive

RE: Shredding a file

2002-05-28 Thread Nikola Janceski
Not to fuel the fire. (well I am). Don't hard drives read data by reading the changes of polarity on the disk over a distance? If so wouldn't replacing the data with some other junk data of equal size in the same location as data cause the data to be unrecoverable, (for assurance purposes

'use' question

2002-05-28 Thread Jason Frisvold
This is kind of a weird situation and *disclaimer* isn't my code! :-) The problem is that we're getting a weird error with this code... (this is from the actual program) Undefined subroutine TicketEmail::set_path_information called at /usr2/local/PerlModules/TicketEmail.pm line 30.

Re: Shredding a file

2002-05-28 Thread Jonathan E. Paton
--- drieux [EMAIL PROTECTED] wrote: On Tuesday, May 28, 2002, at 05:27 , Jonathan E. Paton wrote: [..] Never rely totally on software based security. There is no point installing/writing lots of security software if your system admin is a KGB agent, or your cleaner can access

Re: 'use' question

2002-05-28 Thread drieux
On Tuesday, May 28, 2002, at 12:03 , Jason Frisvold wrote: [..] Undefined subroutine TicketEmail::set_path_information called at /usr2/local/PerlModules/TicketEmail.pm line 30. here is a part of your problem - you neither exported 'set_path_info' from the 'library.pm' file - so that the

Re: bounces from list memeber(s)?

2002-05-28 Thread Kari Jakobi
Hello Perl Beginners, hello Tim, On Tue, 28 May 2002, 09:12:17 h [GMT -0400] (which was 15:12:17 h [GMT +0200] where I live) Tim Musson wrote: Headers snipped That's no bounce - there is no In-Reply-To or References line in those headers. Must be something else. -- Regards, Kari Jakobi

Re: e-mailing with DBI

2002-05-28 Thread Peter Scott
At 12:21 PM 5/28/02 -0500, rory oconnor wrote: I manage my mailing lists (yes, the are opt-in) in mysql and operate on it with perl. However, the missing piece right now is the mailing execution element. I'd like to create a perl script that will mail each one of my receipients a personalized

Re: Shredding a file

2002-05-28 Thread drieux
On Tuesday, May 28, 2002, at 12:15 , Jonathan E. Paton wrote: [..] Can a knowledgable person design a optical tempest system as a web-project please? I'd love to be able to build one myself, or buy one from thinkgeek.com or where-ever. I'm sure they'd sell well, not sure whether you

Re: reference to an array

2002-05-28 Thread Peter Scott
At 09:22 AM 5/28/02 -0400, William West wrote: b) you might want to pass in a reference to the array - and fill it up push( @$array_ref, $_ ) i almost understand this- not really though... I'm not sure what it was for either, missed the earlier part of the

Re: Trouble openign a file

2002-05-28 Thread Gautam
Eric Preece wrote: Hello, I am new to perl and having trouble with a script I wrote to publish some data in an rss format. The script works great from the command prompt but dies when I use input from a web form. The error is No such file or directory for my template. The file is there and

Re: CGI Images

2002-05-28 Thread Gautam
A. Rivera wrote: Anyone have a working script or reference link to a cgi script that can spit out images? I'm trying to use this... img src=image.cgi to display an image, but it never comes out. The cgi spits it out as if it were text. Anyway, I really would like to see a working

Re: Encryption with rijandael.

2002-05-28 Thread zentara
On 28 May 2002 07:37:24 -, [EMAIL PROTECTED] (Postman Pat) wrote: Greetings, I am looking for basic examples of how I would go about doing encryption using rijandael. For instance, I wanna take a text file $file and encrypt it with a given key $key and write it to file $cryptfile. Any

the sort routine

2002-05-28 Thread Eric Wang
Hi People, I have this flat text file with numbers in it. I tried to use the sort routine but it seems like the numbers were not sorted at all. Help.. Eric -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: the sort routine

2002-05-28 Thread Nikola Janceski
perldoc -f sort sort sort's by cmp by default... for numerical use sort { $a = $b } -Original Message- From: Eric Wang [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 4:03 PM To: [EMAIL PROTECTED] Subject: the sort routine Hi People, I have this flat text file

RE: the sort routine

2002-05-28 Thread Timothy Johnson
Maybe you could give us an example of what you've done? -Original Message- From: Eric Wang [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 1:03 PM To: [EMAIL PROTECTED] Subject: the sort routine Hi People, I have this flat text file with numbers in it. I tried to use the sort

Re: the sort routine

2002-05-28 Thread Michael Fowler
On Tue, May 28, 2002 at 01:03:01PM -0700, Eric Wang wrote: I have this flat text file with numbers in it. I tried to use the sort routine but it seems like the numbers were not sorted at all. Um, we're going to need a little more detail. What was in the file? What code did you use to read

A) is there a WIN32 newsgroup? B) win context question

2002-05-28 Thread Dave Reynolds
Hi, If there is a specific place to post this question, please let me know. Thanks in advance. I'm trying to query services running on a server. I can do it without any problems with the WIN32::lanman module. However, I cannot get the services from a machine that is not on my domain. How can I

RE: 'use' question

2002-05-28 Thread Jason Frisvold
I follow completely... The idea behind the library.pm file is for it to basically be an include file ala C/C++. The intent is to not re-write the same functions over and over again... With the exception of using it in an actual package (ala the mypackage.pm example), this is used successfully

Re: sending mail from Perl redirecting from a file

2002-05-28 Thread Gautam
lz wrote: Hi guys, open TMP, /home/dev/perl/mail_queue/$filename or die Can't create file: $!; I read an incoming file, modify it and save it in the file, as seen above. Later on, I'd like to send the above generated file: I try the following, but it doesn't work. open MSG, |mailx

Re: Encryption with rijandael.

2002-05-28 Thread Michael Fowler
On Tue, May 28, 2002 at 04:50:18PM -0400, zentara wrote: The following is an example of setting a simple 32 byte key, and a sub which will give your data a blocksize of 16 bytes. It seems to me it would be easier to use Crypt::CBC or Crypt::CBCeasy, both available from CPAN. Each provides a

RE: the sort routine

2002-05-28 Thread Eric Wang
the list is like this 664435 3422451 443262 3345223 and if I load this in an array @array and sort it @result = sort @array it sorts the numbers by digits, but not the whole number for example is bigger than 443322341 because it's first digit is a 6 Help~ Eric On Tue, 28 May 2002,

Re: the sort routine

2002-05-28 Thread Michael Fowler
On Tue, May 28, 2002 at 01:20:48PM -0700, Eric Wang wrote: @result = sort @array it sorts the numbers by digits, but not the whole number for example is bigger than 443322341 because it's first digit is a 6 Your question was answered by a another poster. I'll reiterate: see perldoc

Re: the sort routine

2002-05-28 Thread drieux
On Tuesday, May 28, 2002, at 01:03 , Eric Wang wrote: [..] I have this flat text file with numbers in it. I tried to use the sort routine but it seems like the numbers were not sorted at all. a) how did you get the 'numbers' out of the file? b) what was the specific syntax you used to get

Re: anonymous array?

2002-05-28 Thread Todd Wade
Mark Henry wrote: ...is the line beginning ref ($sender ... assignment of an anonymous array to a reference? ref($sender = new Mail::Sender { from = '[EMAIL PROTECTED]', smtp = 'server.location.net', boundary = 'This-is-a-mail-boundary-435427' }) or die(Error($sender) :

Re: calculate dates

2002-05-28 Thread John W. Krahn
Drieux wrote: On Tuesday, May 28, 2002, at 09:25 , Sven Bentlage wrote: I'm trying to get all the date values for the week (7days) ahead of a specified date. To get the current date I use : my ($d, $m, $y) = (localtime)[3,4,5]; my $date = sprintf(%02d-%02d-%02d, $d, $m+1,

referring to an array in an array of arrays

2002-05-28 Thread Bryan R Harris
How can I get at an array in an array of arrays? I'm creating the arrays using: $fComments[$i++] = [ @comments ]; Now I want to get back what I put in: print $fComments[0]\n; but this prints ARRAY(0x107671f0). How do I follow that pointer? (I really think we need a pre-beginners

Re: referring to an array in an array of arrays

2002-05-28 Thread John W. Krahn
Bryan R Harris wrote: How can I get at an array in an array of arrays? I'm creating the arrays using: $fComments[$i++] = [ @comments ]; Now I want to get back what I put in: print $fComments[0]\n; print @{$fComments[0]}\n; John -- use Perl; program fulfillment -- To

RE: referring to an array in an array of arrays

2002-05-28 Thread Timothy Johnson
You can try something like this: print @{$fComments[0]}\n; Which will attempt to dereference the array at $fComments[0]. -Original Message- From: Bryan R Harris [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 2:55 PM To: [EMAIL PROTECTED] Subject: referring to an array in an

RE: referring to an array in an array of arrays

2002-05-28 Thread Bryan R Harris
That did it, thanks Tim and John. - B __ You can try something like this: print @{$fComments[0]}\n; Which will attempt to dereference the array at $fComments[0]. -Original Message- From: Bryan R Harris [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 2:55

Re: Shredding a file

2002-05-28 Thread Shawn
On 05/28, David T-G said something like: % sort of secure form in memory (encrypted or something). Now that's an interesting one... Suppose someone feeds this script a password or a credit card number or such (that is, something manageable, even if only for me since perl could suck the OED

  1   2   >