RE: Any quicker way of writing the following...?

2001-11-26 Thread Daniel Falkenberg
WOW! Thanks all for your help with this one? It has helped me a great deal and now I can actually take a few lines of code off my program :) Regards, Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

What the heck is this code doing to me?

2001-11-26 Thread Daniel Falkenberg
Hey all! I have the following code that is doing *EXACTLY* what I want it to do and I would not have a clue why? LOL. The code was written by myself and I was only experimenting with it and testing it until I realized that it worked exactly how I wanted it to, but it wasn't ment to... :) Can any

Split

2001-11-26 Thread Daniel Falkenberg
:/bin/false test4:x:506:505:test Account:/home/test4:/bin/false test2:x:507:45:Test Account:/home/test2:/bin/false daniel:x:508:45:Daniel Merritt:/home/daniel:/bin/false As we all know the Unix /etc/passwd file looks like the above... Now with the following I want to be able to only find the user

Split

2001-11-26 Thread Daniel Falkenberg
:/bin/false test4:x:506:505:test Account:/home/test4:/bin/false test2:x:507:45:Test Account:/home/test2:/bin/false daniel:x:508:45:Daniel Merritt:/home/daniel:/bin/false As we all know the Unix /etc/passwd file looks like the above... Now with the following I want to be able to only find the user

Split

2001-11-26 Thread Daniel Falkenberg
:/bin/false test4:x:506:505:test Account:/home/test4:/bin/false test2:x:507:45:Test Account:/home/test2:/bin/false daniel:x:508:45:Daniel Merritt:/home/daniel:/bin/false As we all know the Unix /etc/passwd file looks like the above... Now with the following I want to be able to only find the user

Checking to see if $user exists in a hash.

2001-11-26 Thread Daniel Falkenberg
Hey all, I have just created the hash that looks like this %users = ( 'uucp' => '14', 'daemon' => '2', 'daniel' => '45', 'test2' => '45', '

Simple error... I think....

2001-11-27 Thread Daniel Falkenberg
Hey all, crud:x:503:503::/home/tunnel:/bin/bash test:x:504:45:Test Account:/home/test:/bin/false test4:x:506:45:test Account:/home/test4:/bin/false test2:x:507:45:Test Account:/home/test2:/bin/false daniel:x:508:45:Crudles:/home/daniel:/bin/false The followowing hash is created below with the

Config file regex...

2001-11-27 Thread Daniel Falkenberg
Hey all, [Config File] Linux Passwd File = /etc/passwd New File= /home/test Old File = /home/test Company Name = Company Name Company URL = http://www.servername.com Above is a config file I j

RE: Config file regex...

2001-11-27 Thread Daniel Falkenberg
Hey all, My sincerest apologize to all! The last post has does exactly what I want it to do. There is no need have to do anything else at all with the code. Trial and error :) Regards, Dan Hey all, [Config File] Linux Passwd File = /etc/passwd New File

Getting rid of hash values I don't want..

2001-11-28 Thread Daniel Falkenberg
Me:/home/daniel:/bin/false *test6:x:509:45:Test Account:/home/test6:/bin/false Now I have no trouble actually splitting the file but what I really want to do is have all the values of $lines $file = '/etc/passwd'; open PASSWD, "$file" or die "$file: $!\n"; while ($

RE: Getting rid of hash values I don't want..

2001-11-28 Thread Daniel Falkenberg
sers; close PASSWD; } view_users(%users); Now the hash works fine... %users = ( 'daniel' => 'Daniel Merritt', 'test2' => 'Test Account', 'test4' => 'test Account', 'test6' =>

[OT] Apache and images dir

2001-11-29 Thread Daniel Falkenberg
Hey all, Just a quick question that is off topic but in the long run it will help me with a Perl program I am working on. My apologize if this annoys anyone. I want to know if there is a command within apache that allows me to find out what my current image dir is. Ie I don't want to have to e

Re: system `ls` or File::Find?

2001-12-03 Thread Daniel Gardner
ar more sense to you, and whoever has to maintain the script later. -- Best regards, Danielmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

subs in while loops

2001-12-03 Thread Daniel Falkenberg
Hi All, while(1) { #Read from a sub outside of the while loop... get_sub(); } get_sub { print $test; } I understand that the above code doesn't really say much but it gives a brief understading of my problem. Baiscally when I compile the script I get a compilation error saying... Name "

Re: Net:SFTP license and security

2001-12-04 Thread Daniel Gardner
od for Net::SFTP. -- Best regards, Danielmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: SafePerl

2001-12-04 Thread Daniel Gardner
;t trust. http://www.perldoc.com/perl5.6.1/lib/Safe.html -- Best regards, Daniel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Simpler....

2001-12-04 Thread Daniel Falkenberg
Hey all, Please don't stree to much over this one but, is there an easier way of writing this? while(1){ if ($status == 1) { #Do this sub... sub(); elsif ($status == 1) { #Do this other sub... sub2(); } else { #Continue while loop... } } Can I make it smaller. I wan

Checking a hash for truth...

2001-12-04 Thread Daniel Falkenberg
G'day all, Just a quick question I want to be able to have an if statement check the keys of a hash for truth or not. So basically I have the following hash... #Check the following variable in the hash %users to see if it exists or not... $user = "test"; %users = ( 'test1' => 'Test

Re: HowTo prevent CPAN upgrading perl.

2001-12-05 Thread Daniel Gardner
ule don't have this "feature" - upgrade that and you should be sorted. -- Best regards, Danielmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Large variable...

2001-12-05 Thread Daniel Falkenberg
Hey all, $string = "\nHELLO WORLD!\n\n". "To $to, \n\n". "\n". "-" x 70, "\n Hello World". "Thank you for using our software.\n\n"; My problem is that my variable $string dies or doesn't print (if you wish :) ) anything after the 70,. Is there something I am do

FW: Long variable again

2001-12-05 Thread Daniel Falkenberg
> Hey again all! > > $string = "attack. The password for $user_to_change should not have > to be changed.\n". > "-" x 70, "\n Hello". > "Thank you for using our software.\n\n"; > > Now I have been informed to replace the , with a . at the second line > of the string near 70.

Confirmation...

2001-12-05 Thread Daniel Falkenberg
List, Just a quick question of confirmation as to what the following REs does... $string =~ s/[^a-zA-Z0-9]//g; I take it only allows $string to eq anthing in the charcter class of a-z, A-Z and 0-9. I also take it that anything other than that will be stripped out? Any other comments? Regards

Confirmation... but, what if....

2001-12-05 Thread Daniel Falkenberg
From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] Sent: Thursday, 6 December 2001 2:48 PM To: Daniel Falkenberg Cc: [EMAIL PROTECTED] Subject: Re: Confirmation... On Dec 6, Daniel Falkenberg said: >$string =~ s/[^a-zA-Z0-9]//g; > >I take it only allows $string to eq anthing in th

Re: Perl + Procmail

2001-12-06 Thread Daniel Gardner
;>) { # do something } will read each line of STDIN and put it's contents into $_ [1] http://search.cpan.org/search?dist=Mail-SpamAssassin -- Best regards, Daniel You cannot apply a technological solution to a sociological problem. (Edwards' Law) -- To unsubscribe, e-mail: [

Restarting a daemon...

2001-12-06 Thread Daniel Falkenberg
Hi All, I have a daemon here that runs in a while loop. I was just wondering if it is possible to restart a perl daemon instead of doing the following... %killall name_of_perl_daemon.pl How would I go about doing something like... service name_of_perl_daemon.pl restart Can I do this with per

Re: PERL MySQL DBI

2001-12-07 Thread Daniel Gardner
. perl 6 is going to have //= which does the same thing as ||= but only assigns if $b is undef. -- Best regards, Daniel Bershere's Formula for Failure: There are only two kinds of people who fail: those who listen to nobody... and those who listen to everybody. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Using die but not break out of the script

2001-12-07 Thread Daniel Gardner
able? Is > that posssible? how about: $var = system ("dir ..."); it'll be 0 on success, which isn't quite what you want, but probably just as useful. check perldoc -f system -- Best regards, Daniel -- If you do what you always do, you'll get what you alway

Re: Disable ModPerl

2001-12-07 Thread Daniel Gardner
Friday, December 07, 2001, 11:29:15 PM, Agustin Rivera wrote: > Is there a quick, simple command I can use to disable Modperl on all > variables in script, without having to qw' then all? what do you mean when you say "disable modperl"? -- Best regards, Daniel Democr

Re[2]: Disable ModPerl

2001-12-07 Thread Daniel Gardner
he guide - http://perl.apache.org/guide/ perhaps this would be a nice place to start: http://perl.apache.org/guide/intro.html#What_is_mod_perl -- Best regards, Daniel Never call a man a fool. Instead, borrow things from him. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re[2]: $searchstring help

2001-12-07 Thread Daniel Gardner
/s (n=100) tr(z): 13 wallclock secs (10.78 usr + 0.25 sys = 11.03 CPU) @ 90661.83/s (n=100) make if that what you will... i've pasted the code i used below, it isn't very interesting. -- Best regards, Daniel "The only thing worse than being talked about - is not

File creation...

2001-12-10 Thread Daniel Falkenberg
Hi all, I want my perl code to be able to check to see if a file exist and if the file doesn't exist I want that file to be created. What would be my best way of going about this? Something like... $backup_file = $conhash{$title}{'Linux Passwd Backup'}; #Grab location from a directory located

RE: File creation...

2001-12-10 Thread Daniel Falkenberg
Dan, Just figured it out... my $backup = #Dir in hash somewhere. Not important -T $backup || open(BACKUP, ">/tmp/passwd_backup"); Very, very cool! Cheers, Dan Hi all, I want my perl code to be able to check to see if a file exist and if the file doesn't exist I want that file to be c

Deleting a hash value

2001-12-10 Thread Daniel Falkenberg
Hi all, %allusers = ( 'users' => { 'user' => 'Test Account', '*Crudles' => 'Hello World', 'Crud' => 'Another Test',

Re: Data::Dumper and eval question

2001-12-11 Thread Daniel Gardner
$_; > } > close(READ_DD); it doesn't look like you got any replies. perhaps you could indulge us, try explaining your problem again assuming we don't know what Data::Dumper is. it might help... -- Best regards, Daniel [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Deleting a hash value

2001-12-11 Thread Daniel Gardner
Tuesday, December 11, 2001, 6:38:47 AM, Daniel Falkenberg wrote: > Does any one know how I would go about deleing all hash keys with a star > in them from the following hash? > Would I go something like the following > #!/usr/bin/perl -w > %allusers = ( >

Re: making a perl DLL

2001-12-11 Thread Daniel Gardner
Create ActiveX controls written in Perl PerlCOM - Embed Perl interpreters into client applications is that the sort of thing? (disclaimer: i don't do windows) [1] http://www.activestate.com/Products/Perl_Dev_Kit/ -- Best regards, Daniel [EMAIL PROTECTED]

Module download

2001-12-11 Thread Daniel Falkenberg
Hello All, I don't know if this is possible but I want to be able to have a Perl script check my server for modules that I need in my script. If the modules don't exist. Is there a module that does this or similar? Regards, Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

RE: Can I use PERL to add/remove /etc/passwd entries

2001-12-12 Thread Daniel Falkenberg
Hey all, I have just finally finished a WWW based Perl program that can add/delete and change users password from a WWW based script. I have tried to make this script as secure as I can. The script can modify the /etc/passwd files has any one seen a script like this before? Thx, Dan -

Cpan.pm

2001-12-12 Thread Daniel Falkenberg
Hello All! Just playing around with Cpan.PM and I have come accross an error that I am a little unsure about... When I complie the following code... # install my favorite programs if necessary: for $mod (qw(Net::FTP MD5 Data::Dumper)){ my $obj = CPAN::Shell->expand('Module',$mod); $obj->ins

RE: Can I use PERL to add/remove /etc/passwd entries

2001-12-12 Thread Daniel Falkenberg
- From: Curtis Poe [mailto:[EMAIL PROTECTED]] Sent: Thursday, 13 December 2001 10:20 AM To: Daniel Falkenberg; zentara Cc: [EMAIL PROTECTED] Subject: RE: Can I use PERL to add/remove /etc/passwd entries --- Daniel Falkenberg <[EMAIL PROTECTED]> wrote: > Hey all, > > I have just fin

Re: Cpan.pm

2001-12-12 Thread Daniel Gardner
Hello Daniel, Wednesday, December 12, 2001, 11:31:13 PM, Daniel Falkenberg wrote: > # install my favorite programs if necessary: > for $mod (qw(Net::FTP MD5 Data::Dumper)){ > my $obj = CPAN::Shell->expand('Module',$mod); > $obj->install; > } > I recie

Re: How would I E-Mail something in perl.

2001-12-12 Thread Daniel Gardner
deals with > sendmail, but I'm using a MS Server so I don't have something nice like > sendmail. how about Mail::Bulkmail [1]. it sounds like it should do what you want quite easily. [1] http://theoryx5.uwinnipeg.ca/CPAN/data/Mail-Bulkmail/Bulkmail.html -- Best Regards, Daniel

Re: Pre-populating standard input

2001-12-13 Thread Daniel Gardner
currentdir how about the Term::Readline module. it's part of the standard perl distribution, so you should already have it. http://www.perldoc.com/perl5.6.1/lib/Term/ReadLine.html -- Best Regards, Daniel[EMAIL PROTECTED] -- To unsubscribe, e-mail: [

Not creating home dir....

2001-12-13 Thread Daniel Falkenberg
Hello all, Could some one help me with the following code? Basically the code works OK except for the fact that the user $new_user (s) home dir is not created? #!/usr/bin/perl -w use Unix::PasswdFile; my $new_user = "test7"; my $new_fname = "Test"; my $new_lname = "Account"; my $new_pass = "

RE: Not creating home dir....

2001-12-13 Thread Daniel Falkenberg
Hi all, I mean to do what I want I had to add the following system command is there and easier way to do the following code add on...? #!/usr/bin/perl -w use Unix::PasswdFile; my $new_user = "test7"; my $new_fname = "Test"; my $new_lname = "Account"; my $new_pass = "password"; my $pw = new U

Variable won't keep formatiing....

2001-12-13 Thread Daniel Falkenberg
Hello All! I have a HTML text box that I need users to write what ever they like in it. Similar to the following my $oofmsg= param('oofmsg'); $me = 'dan'; That gets passed on through a scrolling text box and from there it is writen to a file like the following open VAC2, "+< $

Re: Not creating home dir....

2001-12-14 Thread Daniel Gardner
Friday, December 14, 2001, 1:37:00 AM, Daniel Falkenberg wrote: > Could some one help me with the following code? Basically the code > works OK except for the fact that the user $new_user (s) home dir is not > created? > #!/usr/bin/perl -w > use Unix::PasswdFile; > my

Re: system function question

2001-12-14 Thread Daniel Gardner
script using the Net::SSH module? A: You don't. Use RSA or DSA keys. See the ssh-keygen(1) manpage http://theoryx5.uwinnipeg.ca/CPAN/data/Net-SCP/SCP.html although if you're determined to do it the other way, you could look at the Expect module: http://search.cpan.org/search?dist=

Hash question...

2001-12-16 Thread Daniel Falkenberg
Hi All, Just working on a new hash that I need some help with... Firstly I can create a hash like the following no problem %popusers = ( 'user1' => 'Fullname1', 'user2' => 'Fullname2', 'user3' => 'Fullname3', ); Foreach

Format of array in HTML text box gone weird...

2001-12-16 Thread Daniel Falkenberg
Hi All, Just working on some HTML stuff at the moment and I have a come across a little problem that I don't really understand Basically I place the following ararry (really only text) into a scrolling text box but when the text array is seen through the text box it looks like the following.

RE: Format of array in HTML text box gone weird...

2001-12-16 Thread Daniel Falkenberg
Peter, That is exactly what it does but is there any way to get rid of that? Regards, Dan -Original Message- From: Peter Scott [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 December 2001 2:28 PM To: Daniel Falkenberg; [EMAIL PROTECTED] Subject: Re: Format of array in HTML text box gone

Hash of a hash question...

2001-12-16 Thread Daniel Falkenberg
Hello all! Can some one help me with the following hash of a hash? I need to create a hash of a hash in the following format... %popusers = ( 'user1' => { 'Fullname1' => 'YES', } 'user2' => {

Hash of a hash question... Answer to my own question...

2001-12-16 Thread Daniel Falkenberg
'user3' => { 'Fullname3' => 'YES', } '*user4' => { 'Fullname4' => 'YES' } ); Some of the %popusers keys have a star that I want de

RE: Format of array in HTML text box gone weird...

2001-12-16 Thread Daniel Falkenberg
-Original Message- From: Kristina Nairn [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 December 2001 3:14 PM To: Daniel Falkenberg; Peter Scott Cc: [EMAIL PROTECTED] Subject: Re: Format of array in HTML text box gone weird... Try the following code: undef $"; print "@lines"; $"

Can any one see an error in here I can't?

2001-12-17 Thread Daniel Falkenberg
Hello All, I have this problem that I can't seem to see what is going on. The following code gives me the following output... #!/usr/bin/perl -w use Data::Dumper; my $file = '/etc/passwd'; my $procrc = '.procmailrc'; sub view_users{ open( PASSWD, $file) or die "$file: $!\n"; flock(PA

Hash is almost there...

2001-12-17 Thread Daniel Falkenberg
Hello List, I have almost completed my hash of a hash problem but for some reason my data is sitting all over the place... as shown in the following hash of a hash... %popusers = ( 'fullname1' => { 'fullnam1' => 'NO' },

Hash question...

2001-12-17 Thread Daniel Falkenberg
Hello All, I just have a quick question about printing hash of hash values. The hash looks like the following... %popusers = ( 'user1' => { 'fullname1' => 'YES' }, 'user2' => {

test

2001-12-17 Thread Daniel Falkenberg
test -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

New idea..

2001-12-17 Thread Daniel Falkenberg
Hello All, Just wondering if some one can help me with some stuff that I want to do... Basically I have a hash like so... %popusers_test = ( 'tesst8' => 'YES', 'vintekpop' => 'NO' ); Now I need to print that to a file like so... [USERS] tesst8 = YES vinte

Prining hash of hash values

2001-12-18 Thread Daniel Falkenberg
List, I have a hash of a hash here with that looks similar to the following... %allusers = ( 'USER' => { 'user1' => 'YES', 'user2' => 'NO', 'user3' => 'YES' } ); With

Print second set of keys in hash of hash...

2001-12-18 Thread Daniel Falkenberg
Hello All, I am still having trouble printing out a second lot of hash keys in a hash of a hash. Here is what I have so far. Any ideas or suggestions will be greatly appriciated... %users = ( 'user1' => { 'Fullname1' => 'YES' },

Quick regex. Q.

2001-12-18 Thread Daniel Falkenberg
Hey All, I just have a really quick regex question. I have the following code... next if $username =~ /^ruby/; will that strip and go to the next if statment if $username = ruby? Regards, Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Optimizations.

2001-12-19 Thread Daniel Gardner
re executing the same code, bar a little bit of white space, then they're going to take the same amount of time to run... having said that, it's almost always faster to *write* something verbose than it is to craft a finely-tuned perl golf style one-liner. -- Best Regards, Dani

Variables not being deleted from memory.. I think.

2001-12-19 Thread Daniel Falkenberg
Hi list, I have a unique problem here where I have a daemon perl script running. The code below sits in a while loop in my Perl daemon. If the $status ever equals a 6 then the chunk of code below is executed. Now the problem is is that the code never updates. Ie if I happed to add a * in front

Re: extract uptime for linux box w/perl

2001-12-20 Thread Daniel Gardner
ve got a copy of the cookbook around have a look at recipe 16.22 which has some interesting stuff about using named pipes for .sig files. named pipes are good for .sig files... -- Best Regards, Daniel [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

CPAN and Perl

2001-12-20 Thread Daniel Falkenberg
G'day All, I was just wondering if any one here has any experience with download Perl CPAN modules from a Perl script. I have looked at CPAN.pm but am a little confused by this. I have tried the following... #!/usr/bin/perl -w use strict; #Check if a module exists... if it doesn't then ask t

Re: How to grab a file from web?

2001-12-20 Thread Daniel Gardner
a file you could use: getstore($url, $file) Gets a document identified by a URL and stores it in the file. The return value is the HTTP response code. $! won't be set if get() fails. if you want to get interesting error codes while using get() then your needs are

Re: CPAN and Perl

2001-12-20 Thread Daniel Gardner
Thursday, December 20, 2001, 11:20:35 PM, Daniel Falkenberg wrote: > I was just wondering if any one here has any experience with download > Perl CPAN modules from a Perl script. I have looked at CPAN.pm but am a > little confused by this. > I have tried the following... > #!/

Re: Advice Wanted: authenticating users with perl

2001-12-20 Thread Daniel Gardner
for what you're trying to do (not that i've read it, but the TOC[1] looks good). about the password sending part, there was an article on perl.com[2] that you might find interesting. 1) http://www.aw.com/catalog/academic/product/1,4096,0201615711,00.html 2) http://www.perl.com/pub/a/2001

Default variable for STDIN.

2001-12-20 Thread Daniel Falkenberg
Hello All, Just a quick question. Just wondering how I would go about allowing a user to enter with STDIN either a Y or a N, but have the default variable of N if the user just hits enter. So far I have... print "Hit Y to continue: [N]"; $input = ; hmm.. something like that. Kind Regards, D

Re[2]: C vs. Perl

2002-01-02 Thread Daniel Gardner
n.org/search?dist=Apache-Session http://search.cpan.org/search?dist=MLDBM-Sync hth, daniel > -Original Message- > From: Hanson, Robert [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 02, 2002 2:09 PM > To: Maciejewski, Thomas; Agustin Rivera; [EMAIL PROTECTED] > Subj

Re: Lists or hash

2002-01-12 Thread Daniel Gardner
le for each field this does away with the hash and the array altogether... my ($order_id, $product) = split(/\t/, $record); print $order_id; which hopefully should be self-explanatory. there's other things that could be done, but they start to get a bit silly. hopefully that will giv

Re: Sorry for off topic, please reply as interested, and off list....

2002-01-12 Thread Daniel Gardner
ssword, doesn't add in any sort of hashing or anything. those are basically plain-text passwords. to get back the other way go my $pass = decode_base64("QUE="); and that's it. -- Best Regards, Daniel[EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Help with encryption/decryption

2002-01-13 Thread Daniel Gardner
ot*) > Thanks to anyone who can get me back on track. I have > spent 2 days trying to unravel this and all that is > unravelled is my brain ;~{ i don't know if it'll be any use to you, but there's an interesting article here: http://www.perl.com/pub/a/2001/09/26/crypto1.htm -

Re: How to detect the correct OS:

2002-01-15 Thread Daniel Gardner
ine also > How can I do this??? $^O should have the right stuff in there. try print $^O; or perhaps getting it from Config would work: use Config; print $Config{osname}; print $Config{osvers}; -- Best Regards, Daniel [EMAIL PROTECTED] -- To unsubscribe, e

Re: Encryption/Decryption

2002-01-15 Thread Daniel Gardner
sy, but it looks like it might be good for you. http://search.cpan.org/doc/MBLAZ/Crypt-CBCeasy-0.24/CBCeasy.pm -- Best Regards, Daniel [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Thumbnail images on-the-fly

2002-01-16 Thread Daniel Gardner
un trip if you make it over the mountains -- Best Regards, Daniel[EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Security advice: SHA vs crypt for authenticator

2002-01-17 Thread Daniel Gardner
swords (dictionary words) and comparing them to the values stored in your dbm file. SHA and crypt() would be equally vulnerable to a dictionary attack. I'd stick with SHA. Hashing functions don't get better than that. -- Best Regards, Daniel [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Perl code - Coverage

2002-01-17 Thread Daniel Gardner
e.cvp perldoc Devel::Coverage This software is still very early-alpha quality. Use the tool coverperl to analyze the files that result from running your scripts with coverage enabled -- Best Regards, Daniel [EMAIL PROTECTED] -- To unsubscribe, e-mail:

LWP

2002-01-20 Thread Daniel Llewellyn
ly. I am very much a newcomer, though, and as such, I know nothing of the LWP module.. Thanks, Daniel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re[2]: A few Great Modules

2002-01-20 Thread Daniel Gardner
tly too. good introductory article here: http://www.stonehenge.com/merlyn/UnixReview/col40.html -- Best Regards, Daniel [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Scrolling text box placing carrige returns in text file.

2002-01-20 Thread Daniel Falkenberg
Hey All, I have just created a perl/cgi program that contains a scrolling text box. This text box will grab a small text file from a DIR and placed this text file in the HTML scrolling text file. A user is now able to chage and modify the contents in here but when the user goes and submits the

Re[2]: perl for php, in order to break free from asp

2002-01-27 Thread Daniel Gardner
a >> >> and add "insert into TABLENAME id, first, last, number, state VALUES (" >> $the_csv_string_one_per_row ")"; >> >> so in my linux websever's cgi-bin directory, what will the pl script look like: >> >> ex: >

Re: delete first line of the text file

2002-01-27 Thread Daniel Gardner
Sunday, January 27, 2002, 10:00:44 PM, Malunas wrote: > I have a log file in text format. I need to delete the first line so I could > put the rest in MySQL database. How do I delete only the first line of this > text file? perldoc -q "delete a line in a file" -- B

Re: Redirect error to file using system()

2002-01-29 Thread Daniel Gardner
foreach $user (@users) > { > system("NET SEND $user testing 2>err.out"); > } > --- Does IPC::Open3 help? That sends the program's STDERR to whatever filehandle you want... http://www.perldoc.com/perl5.6.1/lib/IPC/Open3.html -- Best Regards, Daniel

Extracting HTML details from another web site.

2002-02-04 Thread Daniel Falkenberg
Hey all, Just wondering if the following can be done... Basically I have a page that I type in some details and submit these details to another page. Now the page that is returned I don't want displayed at all instead I just want to extract some details from that page and then display them in

Module to fill out form and read data from it

2002-02-04 Thread Daniel Falkenberg
G'day all, Does any one know of any CPAN modules that will fill out a form and read data from it? Basically I need a singe CGI perl script that connects to anther CGI script and fills out the form then gets the results I need. Regards, Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Another simple question

2002-02-04 Thread Daniel Falkenberg
Hey All, I have a string here that may/maynot containg the words NOT YET AVALIABLE. How can I using perl and regex look for a match for the above words. Would it be something like the following... if (test =~ qw(NOT YET AVALIALBE)) { print "Sorry not yet avaliable!"; else { print "Anothe

HTML::TreeBuilder

2002-02-06 Thread Daniel Falkenberg
Hey all, I am currently working with the perl CPAN module HTML::TreeBuilder. Is someone able to explain to me if this is the module I want to use to extract data from a HTML page. Now this HTML page is contained outside of my perl-cgi script. From what I can gather the module will download

HTML::TreeBNuilder

2002-02-07 Thread Daniel Falkenberg
G'day all, Just wondering what my best way to extract the second part of my table... NOT YET AVAILABLE  If I use the following code I can extract the phone number but I can't extract the coverage outcome... @headers = qw/number coverage/; $te = new HTML::TableExtract( headers => [@headers] );

Re: [PHP] opening a big file

2008-04-07 Thread Daniel Brown
On Sun, Apr 6, 2008 at 10:36 PM, Richard Lee <[EMAIL PROTECTED]> wrote: > I am trying to open a big file and go through line by line while limiting > the resource on the system. > What is the best way to do it? > > Does below read the entire file and store them in memory(not good if that's > the

Re: [PHP] opening a big file

2008-04-07 Thread Daniel Brown
On Mon, Apr 7, 2008 at 11:44 AM, Richard Lee <[EMAIL PROTECTED]> wrote: > Daniel Brown wrote: > > > >Was there a reason this was sent to the PHP list as well? Maybe > > just a typo? > > > def a typo.. sorry about that > No problem at all. Jus

Re: Writing into an MS-Access database

2008-04-08 Thread Daniel Kasak
7;ll have a better setup when it's done. -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: [EMAIL PROTECTED] website: http://www.nusconsulting.com.au -- To unsubscribe, e-mail: [E

Re: Debugger in PErl

2008-04-12 Thread Daniel Kasak
On Thu, 2008-04-10 at 03:44 -0700, jeevs wrote: > Is there a good debugger for perl. I have an application running on > Ubuntu , with apache and mod perl along with mysql. and we are into > reverse engineering the product. And need to debug the code. Is there > any debugger for perl other than the

problem using backslash on brackets in regular expressions

2008-04-22 Thread Daniel McClory
Hi, I have files which contain sentences, where some lines have extra information inside brackets and parentheses. I would like to delete everything contained within brackets or parentheses, including the brackets. I know that I am supposed to use the backslash to turn off the metachara

Re: sql and perl

2008-04-28 Thread Daniel Kasak
On Sat, 2008-04-26 at 23:24 -0400, Richard Lee wrote: > Hello guys, > > I want to start learning about sql and how it interacts w/ perl. Great :) If you want to create nice GUI apps that talk to databases, check out my projects at: http://entropy.homelinux.org/axis Dan -- To unsubscribe, e-m

Re: IDE for Perl in Linux

2008-05-05 Thread Daniel Kasak
On Fri, 2008-05-02 at 08:04 -0700, Rodrigo Tavares wrote: > Hello, > > Today I write my perls scripts with a simple editor. > I found this link http://www.enginsite.com/Perl.htm, but it run only in > Windows. > > This link http://www.solutionsoft.com/perl.htm, contain the for linux, but > have

Re: error in printing unicode

2008-05-08 Thread Daniel McClory
There are basically 3 lines that you'll want to be using if you're going to be using unicode in your perl scripts - one for input, one for output, and one for using unicode characters within the perl script itself. binmode STDOUT, ":utf8"; #this tells perl that the stdout is to be enco

Re: First time using Perl & PDF::API2

2008-05-27 Thread Daniel Kasak
view the source to see how to use PDF::API2. Let me know if you have any other questions, feature requests, etc. Dan -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: [EMAIL PROTEC

How can I execute linux commands on terminal and catch the results?

2008-09-29 Thread Daniel Nascimento
it. If the user was already created the script has to print a message for user informing something like this "user already created" Somebody has a tip for me? PS: Sorry by my English. I'm not a good speaker... I'm learning yet. A big hug and thanks for all. Daniel --

<    1   2   3   4   5   6   7   >