Crypt::PassGen;

2002-05-28 Thread Langa Kentane
Greetings, Any ideas if there exists a more secure alternative to this library? From the documentation it says that the library only generates passwords in with no panctuation & special chars & all the passwords are not in mixed case. Is there a library out there that addresses the abovementioned

install crypt::passgen

2002-05-28 Thread Postman Pat
Greetings, I am having a problem with ActiveState ActivePerl 5.6.1. I am tryin to install the abovementioned lib & I get the following error from PPM version 3 beta 3 ppm> search crypt::passgen Searching in repository 2 (ActiveState Package Repository) 1. Crypt-PassGen [0.02] ppm> install c

Re: Referring to a cgi script within a cgi script.

2002-05-28 Thread David T-G
Richard -- ...and then Richard J. Moyer III said... % % Hello all, hi! % % This is my first post, so bear with me. No problem :-) % % I have a form that activates a cgi script that scans a flat-file *.csv % file, matches on a unique identifier, identifies the line that contains the % i

Re: Shredding a file

2002-05-28 Thread David T-G
Jonathan, et al -- ...and then Jonathan E. Paton said... % % > So user Joe goess to https://myserver/script and fills in some values, ... % % HTTP connection better be HTTPS, this can be a VERY weak link. If, for Well, yeah. I figured we could simplify things by establishing the precondition

Re: Shredding a file

2002-05-28 Thread David T-G
Shawn, et al -- ...and then Shawn said... % % On 05/28, Shawn said something like: % > 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 ... % > % > This pro

Re: Is there a good Perl way for a validation subroutine?

2002-05-28 Thread Tagore Smith
Leila Lappin wrote: > Hello all, > > I need to write a subroutine that validates several fields and returns one summary field containing names of what >failed. I was thinking of concatenating names of all fields that failed and return that string from the subroutine. Then >check the string (re

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

Re: Shredding a file

2002-05-28 Thread David T-G
Shawn, et al -- ...and then Shawn said... % % On 05/28, David T-G said something like: % > So that takes care of that example, and maybe it was a bad one. I can't % > come up with one that's better, either, but I have in mind something to % > which I must refer more than once (hmmm... perhaps a

Is there a good Perl way for a validation subroutine?

2002-05-28 Thread Leila Lappin
Hello all, I need to write a subroutine that validates several fields and returns one summary field containing names of what failed. I was thinking of concatenating names of all fields that failed and return that string from the subroutine. Then check the string (return value) and if it's no

Tail call optimization

2002-05-28 Thread Tagore Smith
I came across this statement on the web: >Perl ... supports the tail-call optimization (although you have to do it by hand). I was wondering if someone could give me an example of this. I know what tail-call optimization means, and how to write tail-recursive functions, in Lisp- just not sure ho

Re: Formatting Output

2002-05-28 Thread John W. Krahn
Melissa Cama wrote: > > Hi, Hello, > I currently have a hash which has one value as the key, and then > an array of values assigned to this key. However the arrays are > different lengths. > > I need to print out each value in the array (for each key) as a > new line in an excel/CSV file. Al

Re: elements 2 thru end of the results of a split

2002-05-28 Thread John W. Krahn
Bryan R Harris wrote: > > Is it possible to return elements 2 (index 1) thru end of the results of a > split? > > @myarray = (split(/\s+/,$fContent[$i]))[1..-1]; > > seems right, but doesn't work... If you are doing this because split/\s+/ returns an empty element in $myarray[0] you should u

Re: calculate dates / regex

2002-05-28 Thread John W. Krahn
Sven Bentlage wrote: > > Encountered another problem: > > I'm trying to use a calculated date value in a regex. It only works with > values which are NOT calculated. > > my ($dc, $mc, $yc) = (localtime(time))[3,4,5]; > my $date_now = sprintf("%02d-%02d-%02d", $dc, $mc+1, $yc-100);

Formatting Output

2002-05-28 Thread Melissa.Cama
Hi, I currently have a hash which has one value as the key, and then an array of values assigned to this key. However the arrays are different lengths. I need to print out each value in the array (for each key) as a new line in an excel/CSV file. Also with each new line, a time stamp needs t

Referring to a cgi script within a cgi script.

2002-05-28 Thread Richard J. Moyer III
Hello all, This is my first post, so bear with me. I have a form that activates a cgi script that scans a flat-file *.csv file, matches on a unique identifier, identifies the line that contains the identifier, and pushes the separated values of that line into an array. I want to pass those va

Re: elements 2 thru end of the results of a split

2002-05-28 Thread Jonathan E. Paton
> > Is it possible to return elements 2 (index 1) thru end of the results of a > > split? > > > > @myarray = (split(/\s+/,$fContent[$i]))[1..-1]; > > > > seems right, but doesn't work... It seems right to me too, however, I bet you are getting an array out of bounds problem. First line is bl

Re: 'use' question

2002-05-28 Thread Todd Wade
Jason Frisvold wrote: > This is kind of a weird situation and *disclaimer* isn't my code! :-) The code from the post looks like a C programmer that is new to perl. Interesting, actually. Ive been programming in perl for years and Ive just now got in to C because Im getting my degree. Its neat

Re: elements 2 thru end of the results of a split

2002-05-28 Thread Todd Wade
Bryan R Harris wrote: > > Is it possible to return elements 2 (index 1) thru end of the results of a > split? > > @myarray = (split(/\s+/,$fContent[$i]))[1..-1]; > > seems right, but doesn't work... > > (I sure hope this list never starts charging on a per-answer basis... =) > > - B Id p

elements 2 thru end of the results of a split

2002-05-28 Thread Bryan R Harris
Is it possible to return elements 2 (index 1) thru end of the results of a split? @myarray = (split(/\s+/,$fContent[$i]))[1..-1]; seems right, but doesn't work... (I sure hope this list never starts charging on a per-answer basis... =) - B -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: Shredding a file

2002-05-28 Thread Jonathan E. Paton
> % Well, if the merchant has his own cipher key, it can all be encrypted > % with the owner's cipher key. That make sense? > > OK, I think so. I like examples, though. > > So user Joe goess to https://myserver/script and fills in some values, > including his ccard no, and they get handed back

Re: Shredding a file

2002-05-28 Thread Shawn
On 05/28, Shawn said something like: > 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,

Re: Shredding a file

2002-05-28 Thread David T-G
Shawn -- ...and then Shawn said... % % 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

Re: calculate dates / regex

2002-05-28 Thread Sven Bentlage
Encountered another problem: I'm trying to use a calculated date value in a regex. It only works with values which are NOT calculated. my ($dc, $mc, $yc) = (localtime(time))[3,4,5]; my $date_now = sprintf("%02d-%02d-%02d", $dc, $mc+1, $yc-100);

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

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: 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 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

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 lis

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

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: 'use' question

2002-05-28 Thread Jason Frisvold
Ok, agreed... I'll see if I can change his "methods" ... :P Got a decent reference on h2xs? (I've never heard of it) I'll look at your examples as well. Thanks! --- Jason H. Frisvold Senior ATM Engineer Engineering Dept. Penteledata CCNA Certified - CSCO10151622 [EMA

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: 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 perldo

RE: the sort routine

2002-05-28 Thread Nikola Janceski
use @result = sort {$a <=> $b} @array; sort sort's by cmp (string comparison) by default. > -Original Message- > From: Eric Wang [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 28, 2002 4:21 PM > To: Timothy Johnson > Cc: [EMAIL PROTECTED] > Subject: RE: the sort routine > > > the lis

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, Timot

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: A) is there a WIN32 newsgroup? B) win context question

2002-05-28 Thread Arul, Rex
Please go to http://aspn.activestate.com/ASPN and you will find a list of Win32-specific lists. Post questions on Perl-Win32-Admins and Perl-Win32-Users and you will get answers to Lanman modules. -- Rex -Original Message- From: Dave Reynolds [mailto:[EMAIL PROTECTED]] Sent: Tuesday, Ma

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. >

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 i

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: 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

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 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

Re: 'use' question

2002-05-28 Thread drieux
On Tuesday, May 28, 2002, at 12:51 , Jason Frisvold wrote: > 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 actu

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: 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. > >An

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... > > > > 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. Plea

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 th

Re: Shredding a file

2002-05-28 Thread David T-G
Nikola, et al -- ...and then Nikola Janceski said... % % Not to fuel the fire. (well I am). *grin* % % Don't hard drives read data by reading the changes of polarity on the disk % over a distance? Basically. % If so wouldn't replacing the "data" with some other "junk data" of equal % size

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: 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 Amer

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 personalize

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: That's no bounce - there is no "In-Reply-To" or "References" line in those headers. Must be something else. -- Regards, Kari Jakobi Using The Bat! 1

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 c

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

'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. Compilatio

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

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: 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 c

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

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 $fullOutfil

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 yo

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: 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. when the page loads, the script will be executed and the image displayed. best JP www.cartailler.com "A. Rivera" <[EMAIL PROTECTED]> w

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 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

RE: Trouble openign a file

2002-05-28 Thread Eric Preece
I haven't tried that yet - I will tonight. Thanks for the help! -Original Message- From: Felix Geerinckx [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: Re: Trouble openign a file on Tue, 28 May 2002 16:48:55 GMT, Eric Preece wrote: > He

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

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: 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

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... 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 perldoc me, I spent day

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 wi

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 = ) > > { > > if ($line =~ /^email\saddress:\s*/) ^^ also change this. > > { See you Roberto Ruiz -- A train s

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: 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 to

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 worr

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: 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 S

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\" $mai

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 usin

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] Subjec

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, Ma

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

Re: checking for an empty string

2002-05-28 Thread David vd Geer Inhuur tbv IPlib
while () { 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 = ) > { > if ($line =~ /^email address/) > { >

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 { ## 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 ca

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: 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 > T

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 = ) > { > if ($line =~ /^email address/) > { >} > } > > How can I check if $line contains a value or is empty? chomp

checking for an empty string

2002-05-28 Thread lz
Hi guys, while($line = ) { 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 http://fifaworldcup.yahoo.com --

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 pus

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 w

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 progra

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 PRO

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: S

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 tem

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: 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 fro

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

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 h

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

  1   2   >