Re: one line creat and write to file?

2003-02-10 Thread Janek Schleicher
On Mon, 10 Feb 2003 12:32:16 -0600, Dan Muey wrote: > I'm tryin got find the quickest way to creat a file and write to it. > > I know I can do > open > print FILEHANDLE $stuff; > close... > and perhaps ad some flocks for good measure > > what I'm wondering is if there is a one line way to

how to debug this error message: a thoughf one

2003-02-10 Thread kasi ramanathen
hi friends, i use useragent to get some web page and store it in htm. i use useragent module. when i run in my windows machine i get the desired output. now the mecine is changed now also windows, when i run i get the error message "can't locate LWP/UserAgent.pm in @INC (@INC contains: .)" wh

Re: finding rows in a large file (22 millions of rows)

2003-02-10 Thread R. Joseph Newton
Madhu Reddy wrote: > Hi, >I want find a duplicate records in a large file > it contains around 22 millions records. > > basically following is my file structure > > C1 C2 C3 C4 > > 12345 efghij klmno pqrs > 34567 abnerv oiuuy uyrv If i were goin

Re: finding rows in a large file (22 millions of rows)

2003-02-10 Thread simran
use Perl; * split data into smaller data bits * clean smaller data bits * merge smaller data bits into slightly larger data bits * repeat last two steps until all data is clean > > We are trying to load date into teradata [which is > data warehousing, stores Terabytes of data, and which > is

Re: finding rows in a large file (22 millions of rows)

2003-02-10 Thread Madhu Reddy
> > 1 word. Oracle. > > This is really why database software exists. I know > this probably > didn't help much, but if this is more than a one > time occurrence a real > database ought to be considered. > > You might start by checking out any reference > material on how large > database syst

Re: finding rows in a large file (22 millions of rows)

2003-02-10 Thread Janek Schleicher
On Mon, 10 Feb 2003 17:53:10 -0800, Madhu Reddy wrote: >I want find a duplicate records in a large file > it contains around 22 millions records. I also feel like Wiggins that a database is the right way to solve it. On the other hand, 22 millions isn't that big on modern computers.

Re: ascii or binary?

2003-02-10 Thread Bryan Harris
> If I include a link on my site to a file that sits on the server(e.g. > *.mp3), the viewer will get the "Save as.." box and can coninue with the > download. My question is: what is the defoult transfer mode for the above > described action? ASCII or binary? Is it dependend on the browser? I do

Re: How do I feed terminal output into a perl script...

2003-02-10 Thread Harry Putnam
Harry Putnam <[EMAIL PROTECTED]> writes: > Running the ls from inside perl program > > #!/usr/bin/perl -w > ## Notice the pipe symbol Some kind of conspiracy has removed the PIPE symbol I referenced (probably a `senior moment') > open(PROC,"ls "); should have a pipe lik

Re: finding rows in a large file (22 millions of rows)

2003-02-10 Thread Wiggins d'Anconia
Madhu Reddy wrote: Hi, I want find a duplicate records in a large file it contains around 22 millions records. basically following is my file structure C1 C2 C3 C4 12345 efghij klmno pqrs 34567 abnerv oiuuy uyrv ... ... ... ..

Re: finding rows in a large file (22 millions of rows)

2003-02-10 Thread Madhu Reddy
C1 C2 C3 C4 12345 efghij klmno pqrs 34567 abnerv oiuuy uyrv 94567 abnerv gtuuy hyrv 12345 aswrfr rtyyt erer 94567 abnerv gtuuy hyrv Here row1 and row4 are duplicates...those needs to be removed or moved to another file --- Madhu Reddy <[EMAIL PROTECT

finding rows in a large file (22 millions of rows)

2003-02-10 Thread Madhu Reddy
Hi, I want find a duplicate records in a large file it contains around 22 millions records. basically following is my file structure C1 C2 C3 C4 12345 efghij klmno pqrs 34567 abnerv oiuuy uyrv ... ... ... ...

Re: Sharing variables

2003-02-10 Thread david
Dan wrote: > Hi > > Is it possible to share variables between 2 perl scripts running as 2 > separate processes? I've looked on CPAN but can't see any names that are > obvious they do that kind of thing. > > Thanks in advance. > > Dan use a simple share memory method such as IPC::ShareLite. exa

Re: Sharing variables

2003-02-10 Thread Victor Tsang
This is what you need http://theoryx5.uwinnipeg.ca/CPAN/data/IPC-Shareable/IPC/Shareable.html Tor. dan wrote: > > Hi > > Is it possible to share variables between 2 perl scripts running as 2 > separate processes? I've looked on CPAN but can't see any names that are > obvious they do that kind

Re: perl behaviour on Multi processor machine

2003-02-10 Thread david
Tanton Gibbs wrote: >> a machine with 4 cpu and 3gb of memory is definitely hard wired to crunch >> number and boost i/o performance. not accounting for machine load, there > is >> very little reason your Perl script will run slower on a powerful >> machine. > > I've found this to be not true mos

Re: perl behaviour on Multi processor machine

2003-02-10 Thread Madhu Reddy
Hi, Thanx all for u r input... I ran only once on two systems for comparision What i observed is, when i ran on small machine ( 1cpu and 512 MB ram), CPU utilisations going to above 95 %...memory utilisation is 50% and when i ran on 4 cpu machines, cpu utilisation is not more than 50%...me

Re: What You Are helping me with its done now

2003-02-10 Thread Jenda Krynicky
From: "R. Joseph Newton" <[EMAIL PROTECTED]> > If you are doing this for a dissertation, presentation will be > important. So also will be commenting. It is not a bad idea to add a > short comment for each variable you declare to indicate what role it > plays in terms of the whole. You also shoul

Sharing variables

2003-02-10 Thread dan
Hi Is it possible to share variables between 2 perl scripts running as 2 separate processes? I've looked on CPAN but can't see any names that are obvious they do that kind of thing. Thanks in advance. Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

what to call my module

2003-02-10 Thread Paul Tremblay
I am planning to distribut my module, but am confused on what to call it. I have a series of modules in a directory that I will call Rtf2xml. (I checked on Cpan, and don't believe this name space is taken.) I named each module by a simple name--for example Pict.pm. In the main script, I have:

Re: CPAN module - cmd history

2003-02-10 Thread Harry Putnam
"Michael Hooten" <[EMAIL PROTECTED]> writes: > perldoc CPAN > [snip] > > The interactive mode is entered by running > >perl -MCPAN -e shell I'm not having a problem entering the interactive shell. I just don't have cmd hist when I get in it. > which puts you into a readline interfac

Re: What You Are helping me with its done now

2003-02-10 Thread R. Joseph Newton
Benjamin Jeeves wrote: > Hi all > > This is what I have been work on over the weekend and a bit more and now it > works so here it is. Please comment on it. As you might see I my develop a > simple Intrusion Detection System I will be adding more signatures in time > and there is a sensor for it t

Re: perl behaviour on Multi processor machine

2003-02-10 Thread Tanton Gibbs
> a machine with 4 cpu and 3gb of memory is definitely hard wired to crunch > number and boost i/o performance. not accounting for machine load, there is > very little reason your Perl script will run slower on a powerful machine. I've found this to be not true most of the time. The larger machin

Re: Workaround needed for epoch time truncation with gmtime

2003-02-10 Thread chris
On Mon, 10 Feb 2003 16:42:43 -0800, [EMAIL PROTECTED] (David) wrote: >Chris wrote: > >> I need to work with epoch time past the year 2038. >> >> my $time = gmtime(2147483647 + 1); >> print $time; >> >> any ideas? > >try: > >#!/usr/bin/perl -w >use strict; > >use Date::Manip; > >print "35 years a

Re: Workaround needed for epoch time truncation with gmtime

2003-02-10 Thread david
Chris wrote: > I need to work with epoch time past the year 2038. > > my $time = gmtime(2147483647 + 1); > print $time; > > any ideas? try: #!/usr/bin/perl -w use strict; use Date::Manip; print "35 years and 20 minutes from now is: ", UnixDate(ParseDate("35 years 20 minutes"),"%s"),"\n

Re: perl behaviour on Multi processor machine

2003-02-10 Thread david
Madhu Reddy wrote: > Hi, >When i ran perl script on multi processor > machine... > it is taking more time as than on single processor > machine > > Let me explain clearly > > I have big file (.5Gb) it has 8 million records... > my perl script will read each record and validates.. > V

Re: perl behaviour on Multi processor machine

2003-02-10 Thread Jenda Krynicky
From: Madhu Reddy <[EMAIL PROTECTED]> >When i ran perl script on multi processor > machine... > it is taking more time as than on single processor > machine > > Let me explain clearly > > I have big file (.5Gb) it has 8 million records... > my perl script will read each record and val

Re: perl behaviour on Multi processor machine

2003-02-10 Thread John P Walls
Madhu Reddy, One thing you can't discount is disk drive I/O time. Do you know what the specs are for disks/controllers and their configurations between each machine? Could be that one disk setup is faster than another.. John :-) "Wiggins d'Anconia" <[EMAIL PROTECTED]> on 02/10/2003 0

Re: perl behaviour on Multi processor machine

2003-02-10 Thread Wiggins d'Anconia
Madhu Reddy wrote: Hi, When i ran perl script on multi processor machine... it is taking more time as than on single processor machine Let me explain clearly I have big file (.5Gb) it has 8 million records... my perl script will read each record and validates.. Validation includes..ch

Workaround needed for epoch time truncation with gmtime

2003-02-10 Thread chris
I need to work with epoch time past the year 2038. my $time = gmtime(2147483647 + 1); print $time; any ideas? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ascii or binary?

2003-02-10 Thread Mat Harris
On Mon, Feb 10, 2003 at 10:54:19 +, mario kulka wrote: > > If I include a link on my site to a file that sits on the server(e.g. > *.mp3), the viewer will get the "Save as.." box and can coninue with the > download. My question is: what is the defoult transfer mode for the above > described

RE: ascii or binary?

2003-02-10 Thread Dan Muey
Is this a perl question? Are you using Net::FTP or something ? > > > If I include a link on my site to a file that sits on the server(e.g. > *.mp3), the viewer will get the "Save as.." box and can > coninue with the > download. My question is: what is the defoult transfer mode > for the abov

Re: perl behaviour on Multi processor machine

2003-02-10 Thread Tanton Gibbs
More than likely, it is disk IO time, not processor time that is causing the slow down. It could be that the larger box has a slower file system due to replication or redundancy. The smaller box probably has a small file system that allows faster access. - Original Message - From: "Madhu

ascii or binary?

2003-02-10 Thread mario kulka
If I include a link on my site to a file that sits on the server(e.g. *.mp3), the viewer will get the "Save as.." box and can coninue with the download. My question is: what is the defoult transfer mode for the above described action? ASCII or binary? Is it dependend on the browser? Mariusz

perl behaviour on Multi processor machine

2003-02-10 Thread Madhu Reddy
Hi, When i ran perl script on multi processor machine... it is taking more time as than on single processor machine Let me explain clearly I have big file (.5Gb) it has 8 million records... my perl script will read each record and validates.. Validation includes..checking each record l

Re: What You Are helping me with its done now

2003-02-10 Thread John W. Krahn
Benjamin Jeeves wrote: > > Hi all Hello, > This is what I have been work on over the weekend and a bit more and now it > works so here it is. Please comment on it. As you might see I my develop a > simple Intrusion Detection System I will be adding more signatures in time > and there is a sensor

RE: Comparing Arrays

2003-02-10 Thread Bob Showalter
Jeff Westman wrote: > If I read 2 files into separate arrays, I *should* be able to compare > the arrays, and therefore see if the files are the same or not. SO > why doesn't this work? > > #--- begin code > #!/usr/local/bin/perl -w > > $f1 = "eghpoli1"; > $f2 = "eghpoli2"; > > open(F1, "$f1") o

RE: Comparing Arrays

2003-02-10 Thread Peter_Farrar
> if (@Af1 eq @Af2) { print "Files compare okay\n"; } > else { print "Files differ\n"; } > # How about something clunky like this: if (join("",@Af1) eq join("",@Af2)) { print "Files compare okay\n"; } else { print "Files differ\n"; } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For add

RE: Comparing Arrays

2003-02-10 Thread wiggins
On Mon, 10 Feb 2003 13:55:46 -0800 (PST), Jeff Westman <[EMAIL PROTECTED]> wrote: > If I read 2 files into separate arrays, I *should* be able to compare the > arrays, and therefore see if the files are the same or not. SO why doesn't > this work?

Comparing Arrays

2003-02-10 Thread Jeff Westman
If I read 2 files into separate arrays, I *should* be able to compare the arrays, and therefore see if the files are the same or not. SO why doesn't this work? #--- begin code #!/usr/local/bin/perl -w $f1 = "eghpoli1"; $f2 = "eghpoli2"; open(F1, "$f1") or die "cannot open $f1: $!\n"; open(F2, "

Re: Install Mod as NON-Root

2003-02-10 Thread Prachi Shah
check this out: http://www.rcbowen.com/imho/perl/modules.html#perl_Makefile_PL_make_make_tes This way works for me. Prachi. Original Message Follows From: Jeff Westman <[EMAIL PROTECTED]> To: beginners <[EMAIL PROTECTED]> Subject: Install Mod as NON-Root Date: Mon, 10 Feb 2003 13:19

Re: Install Mod as NON-Root

2003-02-10 Thread Felix Geerinckx
on ma, 10 feb 2003 21:19:18 GMT, Jeff Westman wrote: > How do you install a perl module to your home directory if you do not > have root access ?? This a Frequently Asked Question. See perldoc -q "own module" -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: MySql LAST ID

2003-02-10 Thread Dan Muey
> > on ma, 10 feb 2003 19:04:01 GMT, Mario Kulka wrote: > > > $sth = $dbh->prepare ("SELECT LAST_INSERT_ID() FROM > $table"); $sth -> > > execute(); $ad_id = $sth->fetchrow_array(); > > $sth->finish(); > > ... > > > > The above works fine and gives me the last id, but what > worries me is

Install Mod as NON-Root

2003-02-10 Thread Jeff Westman
How do you install a perl module to your home directory if you do not have root access ?? Thanks in advance, JW __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: [EMAIL PR

RE: :FTP stor

2003-02-10 Thread Dan Muey
> > Dan Muey wrote: > > > > The print way worked for me also now that I did $|=1; and > piped STDERR > > to STOUT and also the $ftp debug to 1, to find my probs, thanks. > > You shouldn't need autoflush on, as the close should flush > all your data for you. If you do need it, then: > >

Re: MySql LAST ID

2003-02-10 Thread Felix Geerinckx
on ma, 10 feb 2003 19:04:01 GMT, Mario Kulka wrote: > $sth = $dbh->prepare ("SELECT LAST_INSERT_ID() FROM $table"); > $sth -> execute(); > $ad_id = $sth->fetchrow_array(); > $sth->finish(); > ... > > The above works fine and gives me the last id, but what worries me is > the possibility of someon

RE: Running script as a different user

2003-02-10 Thread Dan Muey
> > > Yes, I have sudo, and I also have the passwords for the other > users I need. How are you, as you said below 'enter' ing the server? Browser, telnet, ssh, ftp, etcc It really depends on that method and if your server admin has things set up to let you change Users. Or if it's eve

RE: exec in loop

2003-02-10 Thread wiggins
On Mon, 10 Feb 2003 14:48:34 -0600, "Aman Raheja" <[EMAIL PROTECTED]> wrote: > Hi friends > I am doing exec in a foreach loop, resizing images. > But as the the exec is kicked off, it never returns > What's the way out? > Here's the snippet >

RE: exec in loop

2003-02-10 Thread Dan Muey
I think exec effectively exits your perl script, you might try system, do, backticks or Use the imagemagic module to do all of this for you. perldoc -f exec perldoc -f system Dan > > > Hi friends > I am doing exec in a foreach loop, resizing images. > But as the the exec is kicked off, it nev

Re: 24 hour time issue

2003-02-10 Thread david
Mario Kulka wrote: > hi, > My form asks for the time in the format hh? mm? am/pm? > However before I combine it all into one value (so I can insert it into my > MySQL table) I would like to change the format to military time. I thought > I could simply add 12 to the "hh" value when "am/pm" is pm,

Re: Non-breaking Space

2003-02-10 Thread John W. Krahn
Rob Dixon wrote: > > Hi all. Hello, > Just a warning about about a gotcha I just came across. > > When processing HTML documents, beware that   > or ISO \xA0 isn't matched by regex /\s/. Unless anyone > knows how to persuade it to do so? In message <[EMAIL PROTECTED]> on 28 Jan 2003, David Eas

RE: exec in loop

2003-02-10 Thread Bob Showalter
Aman Raheja wrote: > Hi friends > I am doing exec in a foreach loop, resizing images. > But as the the exec is kicked off, it never returns What's the > way out? Here's the snippet > --- > foreach(@$ref){ > > $imgFile = @

exec in loop

2003-02-10 Thread Aman Raheja
Hi friends I am doing exec in a foreach loop, resizing images. But as the the exec is kicked off, it never returns What's the way out? Here's the snippet --- foreach(@$ref){ $imgFile = @$_->[1].jpg; $thbFile = @$_->[1

RE: Running script as a different user

2003-02-10 Thread yargo
Yes, I have sudo, and I also have the passwords for the other users I need. HTH -Original Message- From: Dan Muey [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 10:19 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Running script as a different user That's atricky

Re: 24 hour time issue

2003-02-10 Thread Rob Dixon
Mario Kulka wrote: > hi, > My form asks for the time in the format hh? mm? am/pm? > However before I combine it all into one value (so I can insert it > into my MySQL table) I would like to change the format to military > time. I thought I could simply add 12 to the "hh" value when "am/pm" > is pm,

Re: :FTP stor

2003-02-10 Thread Rob Dixon
Dan Muey wrote: > > The print way worked for me also now that I did $|=1; and piped > STDERR to STOUT and also the $ftp debug to 1, > to find my probs, thanks. You shouldn't need autoflush on, as the close should flush all your data for you. If you do need it, then: autoflush $stor; is nicer

RE: Running script as a different user

2003-02-10 Thread Dan Muey
That's atricky one. Do you have sudo or are running apache/ssh/however you are 'enter' ing the server as setuid? You'll probably need to talk to your server admin and ask him how you'd go about that one. More details may helpm though. Dan > -Original Message- > From: yargo [mailto:[EMA

Re: run UNIX commands from windows using Perl

2003-02-10 Thread Jose Malacara
You should be able to do this using the Perl Expect module, although not sure about the Windows part. -Jose - Original Message - From: "Prachi Shah" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 10, 2003 1:08 PM Subject: run UNIX commands from windows using Perl > H

Running script as a different user

2003-02-10 Thread yargo
Hi all, My Env. : Solaris/linux RH 7.x, Perl 5.6.1 Is there a way to enter another machine as a differen user and run a script? I don't mind even something like 'rsh'. Thanks! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: 24 hour time issue

2003-02-10 Thread Bob Showalter
mario kulka wrote: > hi, > My form asks for the time in the format hh? mm? am/pm? > However before I combine it all into one value (so I can insert it > into my MySQL table) I would like to change the format to military > time. I thought I could simply add 12 to the "hh" value when "am/pm" > is pm,

run UNIX commands from windows using Perl

2003-02-10 Thread Prachi Shah
Hi All! Is there a way to login to a UNIX system, run an application and retrieve a file written by that application using Perl from a Windows system? thanks, Prachi. _ The new MSN 8: smart spam protection and 2 months FREE* h

RE: :FTP stor

2003-02-10 Thread Dan Muey
> > Dan Muey wrote: > > To answer my own questions : > >> > >> > >> I have 2 questions about this chunk of code I'm trying to > get to work > >> :: I understand that Net::FTP 's stor ... > >> > >> Tells the server to store a new file under the name file. > If the user > >> calls either pasv

24 hour time issue

2003-02-10 Thread mario kulka
hi, My form asks for the time in the format hh? mm? am/pm? However before I combine it all into one value (so I can insert it into my MySQL table) I would like to change the format to military time. I thought I could simply add 12 to the "hh" value when "am/pm" is pm, which works fine except for

Re: :FTP stor

2003-02-10 Thread Rob Dixon
Dan Muey wrote: > To answer my own questions : >> >> >> I have 2 questions about this chunk of code I'm trying to get >> to work :: I understand that Net::FTP 's stor ... >> >> Tells the server to store a new file under the name file. If >> the user calls either pasv or port, >> returns true or fal

RE: Net::FTP stor

2003-02-10 Thread Dan Muey
Thanks! I'll give her a study and try! > > > Hi Dan. > > Dan Muey wrote: > > I have 2 questions about this chunk of code I'm trying to > get to work > > :: > > I understand that Net::FTP 's stor ... > > > > Tells the server to store a new file under the name file. > If the user > > calls ei

Re: Net::FTP stor

2003-02-10 Thread Rob Dixon
Hi Dan. Dan Muey wrote: > I have 2 questions about this chunk of code I'm trying to get to work > :: > I understand that Net::FTP 's stor ... > > Tells the server to store a new file under the name file. If the user > calls either pasv or port, > returns true or false. Otherwise, returns a referen

RE: one line creat and write to file?

2003-02-10 Thread Dan Muey
> > > Dan Muey wrote: > > > I'm tryin got find the quickest way to creat a file and write to it. > > > > I know I can do > > open > > print FILEHANDLE $stuff; > > close... > > and perhaps ad some flocks for good measure > > > > what I'm wondering is if there is a one line way to do it

RE: :FTP stor

2003-02-10 Thread Dan Muey
To answer my own questions : > > > I have 2 questions about this chunk of code I'm trying to get > to work :: I understand that Net::FTP 's stor ... > > Tells the server to store a new file under the name file. If > the user calls either pasv or port, > returns true or false. Otherwise, retu

Re: one line creat and write to file?

2003-02-10 Thread david
Dan Muey wrote: > I'm tryin got find the quickest way to creat a file and write to it. > > I know I can do > open > print FILEHANDLE $stuff; > close... > and perhaps ad some flocks for good measure > > what I'm wondering is if there is a one line way to do it > something like > > createf

MySql LAST ID

2003-02-10 Thread mario kulka
hi, I'm trying to retrive the id number ($ad_id) of the record I just entered: ... $sth = $dbh->do (qq{INSERT INTO $table..."my record" $sth = $dbh->prepare ("SELECT LAST_INSERT_ID() FROM $table"); $sth -> execute(); $ad_id = $sth->fetchrow_array(); $sth->finish(); ... The above works fine and g

Re: calling a subroutine as an element of a hash table...

2003-02-10 Thread Peter_Farrar
Oops, hit send by mistake. This problem all seems to be about mistakes... Thanks to all who replied. > You have three different hashes in use. Look: I did indeed have 3 hash tables... Duh (Must have been Friday afternoon). The central problem was calling '&{${$date_format{$format}}{now}}()' i

Re: error message : panic:POPSTACK

2003-02-10 Thread david
Gary fung wrote: > > I am now implementing a Perl program for data-mining. My program includes > the using of DBI (ODBC). When I used small amount of testing data(within > hundreds records), the program can run successfully. However, when I tried > a large amount of data(hundred thousands of reco

one line creat and write to file?

2003-02-10 Thread Dan Muey
I'm tryin got find the quickest way to creat a file and write to it. I know I can do open print FILEHANDLE $stuff; close... and perhaps ad some flocks for good measure what I'm wondering is if there is a one line way to do it something like createfile("filename.txt",$content); somethin

Net::FTP stor

2003-02-10 Thread Dan Muey
I have 2 questions about this chunk of code I'm trying to get to work :: I understand that Net::FTP 's stor ... Tells the server to store a new file under the name file. If the user calls either pasv or port, returns true or false. Otherwise, returns a reference to a Net::FTP::dataconn object.

Re: calling a subroutine as an element of a hash table...

2003-02-10 Thread Peter_Farrar
Thanks to all who replied. |-+> | | "Rob Dixon" | | | <[EMAIL PROTECTED]| | | m.co.uk> | | || | | 02/07/2003 05:09 | | |

RE: win 32 system info (TieRegistry etc) - functions/commands HE LP needed

2003-02-10 Thread Timothy Johnson
Wow, that's a big CC list. Anyhoo, it looks like TieRegistry will do some of what you want, and you should also take a look at the following modules: Win32::AdminMisc (http://www.roth.net/perl/adminmisc) Win32::Lanman (search on CPAN for JHELBERG) Win32::NetAdmin (you probably already have it)

What You Are helping me with its done now

2003-02-10 Thread Benjamin Jeeves
Hi all This is what I have been work on over the weekend and a bit more and now it works so here it is. Please comment on it. As you might see I my develop a simple Intrusion Detection System I will be adding more signatures in time and there is a sensor for it that collects packets of the wire

Re: How to alarm under 1 second?

2003-02-10 Thread zentara
On Mon, 10 Feb 2003 12:41:57 +0100, [EMAIL PROTECTED] (Angerstein) wrote: >If I need an alarm signal alarm(), in less than 1 second what can I do? Interestingly enough, this just showed up on perlmonks this morning. http://www.perlmonks.org/index.pl?node_id=23402 Simultaneous alarms under 1 sec

Re: slurp in file

2003-02-10 Thread zentara
On Sun, 9 Feb 2003 11:45:56 -0600, [EMAIL PROTECTED] (Ktb) wrote: >Is there any function that places perl code from a file into a program >as if it was just part of the program file itself? > >Something like: > >file >** >Hello World. >** > >program >$file = slurp('file');

RE: changing passwords on nt

2003-02-10 Thread Meidling, Keith, CTR, OSD-C3I
Try using the Win32::AdminMisc module from www.roth.net In there, there's a SetPassword function that works nicely. -Original Message- From: Thomas Browner [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 11:50 AM To: [EMAIL PROTECTED] Subject: changing passwords on nt Is ther

Re: calling sub

2003-02-10 Thread Rob Dixon
Benjamin Jeeves wrote: > Thank You Rob you have been a great help but work it out now I'm glad to hear it. You might like to post your working version for the group to look over. You will teach others something, and you may find that people can make useful comments. Well done Benjamin. Rob -

Non-breaking Space

2003-02-10 Thread Rob Dixon
Hi all. Just a warning about about a gotcha I just came across. When processing HTML documents, beware that   or ISO \xA0 isn't matched by regex /\s/. Unless anyone knows how to persuade it to do so? Cheers, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Pipe Help

2003-02-10 Thread zentara
On Sun, 9 Feb 2003 19:23:16 +0100, [EMAIL PROTECTED] (Anthony) wrote: >Hi, > >But like i said on my second post i wanted to learn how to receive message >from pipe. OK, here are two simple scripts which should show you the idea. One is a reader and one is a writer. Always start and stop the read

win 32 system info (TieRegistry etc) - functions/commands HELP needed

2003-02-10 Thread PRADEEP GOEL
Hi All First Of all - Thanks to everybody for the gr8 help we novices are receiving from you perl experts & sorry to those who helped me & I didn't even pay gratitude or thanks. now coming to the problem - I need the follwoing info on win32 ( which i am getting in unix systems) I want that afte

Re: unloading zip files with perl install script

2003-02-10 Thread Janek Schleicher
On Sat, 08 Feb 2003 21:37:40 -0800, Patricia Hinman wrote: > Does anyone know how to use a zip utility in an > installation script. I would like to create an > installation script for a program I've written. My > only hurdle is learning how to unpack the zip file. > I've heard of gunzip, can I

Re: slurp in file

2003-02-10 Thread Janek Schleicher
On Sun, 09 Feb 2003 12:54:51 -0500, Wiggins D'Anconia wrote: > ktb wrote: >> Is there any function that places perl code from a file into a program >> as if it was just part of the program file itself? >> > > perldoc -f use > perldoc -f require > perldoc -f eval > Don't forget perldoc -f do >

RE: Removing duplicates from an array

2003-02-10 Thread Perry, Alan
See below. Beau E. Cox wrote: > Hi - > >> From: R. Joseph Newton [mailto:[EMAIL PROTECTED]] >> Subject: Re: Removing duplicates from an array >> >> Troy May wrote: >> >>> Hello, >>> >>> What's the best and cleanest way to remove duplicates from an array? I >>> have an array that reads entries

Re: calling sub

2003-02-10 Thread Benjamin Jeeves
Thank You Rob you have been a great help but work it out now On Monday 10 Feb 2003 2:39 pm, Benjamin Jeeves wrote: > On Monday 10 Feb 2003 11:57 am, Rob Dixon wrote: > > Hope you do not mind in helping me out but have try what you put below with > know luck. This is what I have do and try many wa

RE: CPAN module - cmd history

2003-02-10 Thread Michael Hooten
perldoc CPAN [snip] The interactive mode is entered by running perl -MCPAN -e shell which puts you into a readline interface. You will have the most fun if you install Term::ReadKey and Term::ReadLine to enjoy both history and command completion. -Original Message- From: Har

error message : panic:POPSTACK

2003-02-10 Thread Gary Fung
I am now implementing a Perl program for data-mining. My program includes the using of DBI (ODBC). When I used small amount of testing data(within hundreds records), the program can run successfully. However, when I tried a large amount of data(hundred thousands of records), it displays a messa

Re: calling sub

2003-02-10 Thread Benjamin Jeeves
On Monday 10 Feb 2003 11:57 am, Rob Dixon wrote: Hope you do not mind in helping me out but have try what you put below with know luck. This is what I have do and try many ways sub main_prog { my $counter = 0; my $counter1 = 0; $filepos = tell FILEIN; for(;;) {

Re: How to alarm under 1 second?

2003-02-10 Thread Jeff 'japhy' Pinyan
On Feb 10, Angerstein said: >sub selfalarm { > $waittime = @_; Above is your problem. You are assigning the NUMBER of elements in @_ to $waittime, not the first element. Use one of the following: my $waittime = shift; my ($waittime) = @_; my $waittime = $_[0]; >$ppid = getppid(); >

Re: Problem with While condition in file upload

2003-02-10 Thread Rob Dixon
John W. Krahn wrote: > Rob Dixon wrote: >> >> Mike Garner wrote: >>> >>> if ($file) { >>> my @fileparts=split(/\\/,$file); >>> my $file_name=pop(@fileparts); >> >> my $file_name = (split '\', $file)[-1]; > ^^^ > That won't work because you are escaping the final

Re: Problem with While condition in file upload

2003-02-10 Thread John W. Krahn
Rob Dixon wrote: > > Mike Garner wrote: > > > > if ($file) { > > my @fileparts=split(/\\/,$file); > > my $file_name=pop(@fileparts); > > my $file_name = (split '\', $file)[-1]; ^^^ That won't work because you are escaping the final quote. Mike's regex is corr

RE: How to alarm under 1 second?

2003-02-10 Thread NYIMI Jose (BMB)
This is a FAQ : C:\>perldoc -q alarm Found in C:\Perl\lib\pod\perlfaq8.pod How can I sleep() or alarm() for under a second? If you want finer granularity than the 1 second that the sleep() function provides, the easiest way is to use the select() function as

Re: How do I feed terminal output into a perl script...

2003-02-10 Thread Rob Dixon
Hi Mark. Mark Vanmiddlesworth wrote: > I want to feed the output of an "ls" command into a perl script and > store it as a variable, but I can't seem to figure out how to do this. > How can I get this working? Unless you have a good reason to use 'ls', you may well be better off doing it within P

Re: Problem with While condition in file upload

2003-02-10 Thread Rob Dixon
Hi Mike. Mike Garner wrote: > Hello all- > I'm trying to write a script that will upload a file from a web page > and store that file on the web server. I've snipped out the piece of > code below that's supposed to do this for me. This is running under > use CGI ':standard'; use strict; and use w

[Fwd: Re: Mysql lib]

2003-02-10 Thread reavey
Original Message Subject: Re: Mysql lib Date: Sun, 9 Feb 2003 20:53:34 -0500 From: "Bob Showalter" <[EMAIL PROTECTED]> To: "reavey" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> reavey wrote: I'm interested in libraries or procedures which can prod

Re: calling sub

2003-02-10 Thread Rob Dixon
Benjamin Jeeves wrote: > It still add record that it found on the first pass though the while > loop to my database what I need is some way to mark my file to the > point that it get to so it will not find a dupluted of the some > record as the file grows. ant ideas on how I do that. It sounds as

How to alarm under 1 second?

2003-02-10 Thread Angerstein
Hello, I have aquestions. If I need an alarm signal alarm(), in less than 1 second what can I do? Would that work? sub selfalarm { $waittime = @_; if ($pid = fork){ } else { $ppid = getppid(); select (undef,undef,undef, $waittime); kill 14 => ppid; } } SIG{ALRM} = su

PLS DON't OPEN mail with sub - ANTECEDENTES ACADMICOS EDUCACIN BSICACompleta - virus infected

2003-02-10 Thread PRADEEP GOEL
PLS DON't OPEN mail with sub - ANTECEDENTES ACADMICOS EDUCACIN BSICACompleta from some Marcos Contreras <[EMAIL PROTECTED]> - its virus infected I don't know from where i got this mail - although successfully removed in my system . pls fwd it to other lists - if feel so regards Pradeep --

Re: trailing white space

2003-02-10 Thread Gary Stainburn
Hi Marc, Any chance of seeing some code/data? If you're chomping the input, and as output you have print $prefix,$data,"\n"; or print "$prefix$data\n"; then something must be happening to your $prefix value; either that, or maybe you've got another print statement somewhere. Maybe if your "

  1   2   >