Re: How to rename file with a serial extension for backup?

2002-10-24 Thread John W. Krahn
Chris wrote: > > Before I re-invent the wheel... > > I open a file for output but do not want to overwrite if it exists. It > should be renamed with a serial number as an extension > > for example > filename test.txt > > rename to > test.001 > test.002 > test.003 You mean something like this:

RE: How to rename file with a serial extension for backup?

2002-10-24 Thread Satheesh Ramamoorthy
Though it executes as intended, there is a warning message as "Name "main::FH" used only once: possible typo at fren.pl line 5.", what does that mean? Thanks, _S_ -Original Message- From: Mark Goland [mailto:mgoland@;optonline.net] Sent: Thursday, October 24, 2002 12:08 PM To: [EMAIL PROT

mondo makefile

2002-10-24 Thread George Szynal
Can anyone show me how to get this makefile.pl to generate a smaller makefile?  This is for the CodeGenSystem extension to perl.   Makefile Description: Binary data Makefile.PL Description: Binary data -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

split files and join

2002-10-24 Thread Javeed SAR
Hi all, i have big files, i want to split it and do a ftp to other sites, at the other site i should be able to join them and execute them, any of you are doing this type of thing, can anyone help me?? TIA

Re: Using CPAN.pm to Install Modules

2002-10-24 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > On Wed, 23 Oct 2002, Jenda Krynicky wrote: > > > I'm confounded by CPAN.pm's documentation. I've already configured > > > the module but can't figure out how to 'install' a module. e.g., > > > MIME::Lite. > > > > Try > > cpan> install MIME::Lite > > That was the first

Re: mondo makefile

2002-10-24 Thread Jenda Krynicky
> Can anyone show me how to get this makefile.pl to generate a smaller > makefile? This is for the CodeGenSystem extension to perl. Why? Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as

RE: Splitting A large data file

2002-10-24 Thread Jenda Krynicky
> How to combine it back after split??? > > Regards > j@veed copy /B file1.dat + file2.dat + file3.dat + file4.dat + file5.dat file.dat Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as

Re: learning...

2002-10-24 Thread dan
there's also www.cgi101.com .. it's part of a book really, but the first 6 chapters, which are extracts from the book, are really handy, and that's where i started to learn perl, and made me the programmer i am today. dan "Jean-Marie De Crozals" <[EMAIL PROTECTED]> wrote in message news:mail-675C

Email Script Help

2002-10-24 Thread Bill O'Reilly
Hi, I am trying to setup a script on a linux (RedHat 7.3) box that when someone copies a file to a particular folder it would trigger an email being sent to a user. There are multiple folders I would like to add this script to that all I would need to do would be to change the subject line of the

regex ( i suck at them)

2002-10-24 Thread Andres L. Figari
Hello, I am having toruble getting my regex to work >:^( The file I'm parsing for headlines looks like this [*] headline 1 [*] headline 2 etc ... here is my perl attempt at stripping out the [*] part of each line. open (NEWS,$news_file) || die "cannot open news.txt: newsfile = $news_file"; wh

Text Menu Telnet App, on Windoze

2002-10-24 Thread sangoma
Hi, Not sure if 'Text Menu Telnet App' is the correct nomenclature, hopefully you know what I mean, one of those old style apps that supported VT clients. I'm very much a newbie and have strung something together but I'm not too happy with the way I'm doing menus, or writing to the clients screen

Configuration files

2002-10-24 Thread vinai AR
Title: Message Hi all,     We have a library and a configuration file for that library. the inputs to the library will be populated in the configuration file and the configuration file name will be sent to the library. Now we need to call the library twice with different sets of configurati

Weekly list FAQ posting

2002-10-24 Thread casey
NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email address):

Re: Job completion from queue under Windows '98

2002-10-24 Thread Jenda Krynicky
From: "Rajendra Babu, Praveen" <[EMAIL PROTECTED]> > * I submit jobs(basically proprietary language files) with a command, > let's say "resub". > * The "resub" command puts the jobs in a queue along with the user id. > of who has submitted. Basically, the jobs run in a remote m

Re: regex ( i suck at them)

2002-10-24 Thread Nigel Wetters
On Thu, 2002-10-24 at 01:03, Andres L. Figari wrote: > [*] headline 1 > [*] headline 2 ok > $news =~ s/^(\[\*\]) + ([^W.*])/$2/; This won't match, and thus no substitution will happen. try: $news =~ s/^\[\*\] (.*)$/$1/; -- Nigel Wetters, Senior Programmer, Development Group Rivals Digital M

Re: regex ( i suck at them)

2002-10-24 Thread Robin Cragg
Hi, if all you want to do is remove the '[*]' why not do: s/^\[\*\]\s+//; R At 16:03 23/10/2002 -0800, Andres L. Figari wrote: Hello, I am having toruble getting my regex to work >:^( The file I'm parsing for headlines looks like this [*] headline 1 [*] headline 2 etc ... here is my perl

Re: regex ( i suck at them)

2002-10-24 Thread Nigel Wetters
On Thu, 2002-10-24 at 13:04, I wrote: > $news =~ s/^\[\*\] (.*)$/$1/; sorry, this is probably better $news =~ s/^\[\*\] //; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Mail Problem. Can Anyone Help Me?

2002-10-24 Thread Bootscat
I'm setting up a mysqls email list. In the config file it has this varables # Path to SendMail $mailprog = "/usr/sbin/sendmail"; $smtp_server = "localhost.com"; When I try to login I get this: Can't locate Mail/Sender.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i686-linux /usr/lib/perl5/5.

Re: Mail Problem. Can Anyone Help Me?

2002-10-24 Thread Martin Hudec
-BEGIN PGP SIGNED MESSAGE- Hash: MD5 Hello Bootscat, well it looks like you are missing Mail::Sender library...use for example CPAN to find it and.$smtp_server = "localhost.com"; I just want to ask you...are you using this domain? because it looks to me like it is from source cod

detecting "visually similar" strings

2002-10-24 Thread David Garamond
hi, i want to develop a perl module to determine whether two strings are too "visually similar". for example, "ella" (double lowercase ell) and "e11a" (double 1 digit). so this is kind of Soundex but for the eyes. this checking is usable for avoiding "typo attacks" (like in the case of an atta

Perl on a Palm?

2002-10-24 Thread shawn_milochik
Does anyone know if it's possible to execute Perl scripts on the Palm OS? Does anyone here do any Palm OS programming of any kind? What free toolkit is available for it? Shawn ** This e-mail and any files transmitted with i

RE: Perl on a Palm?

2002-10-24 Thread Schmitz, AlexX
Perl for Palm??? Here you go: http://sourceforge.net/projects/palmperl/ Regards, - Alex Schmitz - > > -Original M

RE: Perl on a Palm?

2002-10-24 Thread Schmitz, AlexX
Except there is nothing there, so sorry! Ignore me... - Alex Schmitz Intel Customer Support EMEA [EMAIL PROTECTED] 01793 40 4266 -

DBIx::HTMLView module

2002-10-24 Thread bioinfo Gu
Hi, I am install DBIx::HTMLView module on perl-5.6.1 when I 'make test': PERL_DL_NONLAZY=1 /usr/bin/perl5.6.1 -Iblib/arch -Iblib/lib -I/compbio/programs/perl-5.6.1/lib/5.6.1/alpha-dec_osf -I/co mpbio/programs/perl-5.6.1/lib/5.6.1 test.pl Compilation 1..1 ok 1 NOTE: Those test are done against

Re: Large numbers

2002-10-24 Thread Tanton Gibbs
You do not have USE_LARGE_FILE support enabled. This could be causing the problem. However, it will only cause a problem for files larger than 2G. Are the files giving you problems larger than 2G? - Original Message - From: "Goodman Kristi - kgoodm" <[EMAIL PROTECTED]> To: "'Tanton Gibbs'

RE: Large numbers

2002-10-24 Thread Goodman Kristi - kgoodm
Here is the output from perl -V Summary of my perl5 (revision 5 version 6 subversion 1) configuration: Platform: osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef usethreads=undef use

Re: local()! Explain, please?

2002-10-24 Thread Michael Fowler
On Thu, Oct 24, 2002 at 03:24:14PM -0400, Nikola Janceski wrote: > Then I am really confused, how can I cause the scope of $\ to extend only to > the end of the file and not into the other modules?? You can't. However, you might be able to confine your local version of $\ to only those operations

RE: local()! Explain, please?

2002-10-24 Thread Jenda Krynicky
From: Nikola Janceski <[EMAIL PROTECTED]> > Then I am really confused, how can I cause the scope of $\ to extend > only to the end of the file and not into the other modules?? I'm afraid you can't. You could (using some Tie::Handle magic) change the filehandle so that each print to that filehand

Re: Use of uninitialized value at ./tablecomp.pl line 780, chunk 299

2002-10-24 Thread Michael Fowler
On Thu, Oct 24, 2002 at 10:43:50AM -0700, naveen prabhakar wrote: > Hi,this might be a really silly question. I might be feeding you a bunch of fish, rather than pointing you to documentation, so we both might be silly. > what values are considered as uninitialized.how can I avoid this error.

Re: Large numbers

2002-10-24 Thread Tanton Gibbs
Can you run perl -V and send the results to the list. It may be that you didn't compile with USE_LARGE_FILES. Are you using ActiveState perl? - Original Message - From: "Goodman Kristi - kgoodm" <[EMAIL PROTECTED]> To: "'Robert Citek'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thu

Re: Using CPAN.pm to Install Modules

2002-10-24 Thread Randy Perkins
this would mess me up also replace the slash with two colons perl -MCPAN -e shell cpan> install MIME::Lite after i get past that hurdle i have to be sure it passes all its tests and when it doesnt i have to find out why and fix it usually in directory /home//.cpan/build// is more information some

RE: Large numbers

2002-10-24 Thread Goodman Kristi - kgoodm
I am running WIN2000 and perl 5.6.1 -Original Message- From: Robert Citek [mailto:rwcitek@;alum.calberkeley.org] Sent: Thursday, October 24, 2002 11:02 AM To: Goodman Kristi - kgoodm Cc: '[EMAIL PROTECTED]' Subject: Re: Large numbers Hello Kristi, At 10:22 AM 10/24/2002 -0500, Goodma

RE: Large numbers

2002-10-24 Thread Goodman Kristi - kgoodm
I guess it is usually several mil that produces a problem. Here is a line of code that calculates the number of records in a file. $recs = (-s "$outname.src") / $recl; I am just taking the bytes of $outname.src and dividing by the record length of the file and that returns the number of records

RE: local()! Explain, please?

2002-10-24 Thread Nikola Janceski
Then I am really confused, how can I cause the scope of $\ to extend only to the end of the file and not into the other modules?? perldoc -f local local EXPR You really probably want to be using "my" instead, because "local" isn't what most people think of as

Re: local()! Explain, please?

2002-10-24 Thread Michael Fowler
On Thu, Oct 24, 2002 at 02:02:15PM -0400, Nikola Janceski wrote: > local $\ = "\n"; > > now ... isn't local supposed to "modify the listed variables to be local to > the enclosing block, file, or eval." ? [snip] > Am I just misunderstanding the use of local? Yes, but the documenta

Re: mondo makefile

2002-10-24 Thread Jenda Krynicky
From: "George" <[EMAIL PROTECTED]> > Three reasons. > 1. A friend asked me to help him with this because he will likely > have to support it and wants to trim it down. You are NOT supposed to modify the Makefile by hand. If you need to make some changes, do them in the Makefile.PL. > 2. S

Re: local()! Explain, please?

2002-10-24 Thread Jenda Krynicky
From: Nikola Janceski <[EMAIL PROTECTED]> > Okay, I was fuming mad. I have been struggling with a program that is > supposed to send a simple e-mail... or so I thought! > > for 2 days I have sent test e-mails all of them with headers in the > e-mail and attachments all screwy. then I found the cul

Re: Use of uninitialized value at ./tablecomp.pl line 780, chunk 299

2002-10-24 Thread Frank Wiles
.--[ naveen prabhakar wrote (2002/10/24 at 10:43:50) ]-- | | | Hi,this might be a really silly question. | | what values are considered as uninitialized.how can I avoid this error. | | what does chunk 299 mean.the chunk number remains the same for a | series of such err

Re: Perl on a Palm?

2002-10-24 Thread Angela Fisher
According to perl.com, there are no ports for PalmOS. http://www.perl.com/CPAN/ports/ Angela [EMAIL PROTECTED] wrote: > > Does anyone know if it's possible to execute Perl scripts on the Palm OS? > Does anyone here do any Palm OS programming of any kind? What free toolkit > is availabl

Block Size

2002-10-24 Thread Janfek Esquivel
I'm using SDBM and my actual block size is the default 1K, what I want to know is how do I change this default setting to make this block size bigger. Thanks in advance. _ Broadband? Dial-up? Get reliable MSN Internet Access. htt

Handling and Replacing Info Problem

2002-10-24 Thread Darryl Schnell
I am currently working on a ldapsearch program that is suppose to take fields in ldap and replace them with other data if the info in the ldap database match, however I have one line that has more then one piece of data and is seperated by spaces: mailaltneraddress = [EMAIL PROTECTED] [EMAIL PROTE

Re: Large numbers

2002-10-24 Thread Robin Cragg
Hi Kristi , perl is like most other languages. It counts in binary. The way signed )ie ones that can be positive or negative) are differentiated is the first bit. If the first bit is negative, the number is negative. If I use 3 bit numbers, I would count like this: 000 0 001 1 010

Re: Using CPAN.pm to Install Modules

2002-10-24 Thread eric-perl
On Thu, 24 Oct 2002, Jenda Krynicky wrote: > Maybe you should try a different mirror. Is there a command to update my urllist *interactively* (just like during the initial configuration)? If not: Where can I find a list of mirrors? -- Eric P. Sunnyvale, CA -- To unsubscribe, e-mail: [EMAIL P

Large numbers

2002-10-24 Thread Goodman Kristi - kgoodm
Does anyone know why Perl has a hard time with large numbers and sometimes turns them into negative numbers? Sorry if I am not being specific enough, but really all I am doing is calculating the number of records in a file and if it is a large number of records (lets say over a million) it will re

Re: Large numbers

2002-10-24 Thread Nigel Wetters
On Thu, 2002-10-24 at 16:22, Goodman Kristi - kgoodm wrote: > Does anyone know why Perl has a hard time with large numbers... > > ...lets say over a million... That's not really a large number, and Perl should have no difficulty with it. Could you provide an example of code that produces this prob

Re: DBIx::HTMLView module

2002-10-24 Thread Nigel Wetters
On Thu, 2002-10-24 at 15:41, bioinfo Gu wrote: > > Hi, I am install DBIx::HTMLView module on perl-5.6.1 Ensure you have all the prerequisites, including CGI, DBI, URI::Escape, DBD::mysql, and (maybe) Apache::DBI. Unfortunately, the author hasn't mentioned these in the makefile, so their lack will

Re: mondo makefile

2002-10-24 Thread George
Three reasons. 1. A friend asked me to help him with this because he will likely have to support it and wants to trim it down. 2. So he and I can better understand makefiles in general and what's really not needed can be omitted. 3. Portability is not an issue, this will only be used on

local()! Explain, please?

2002-10-24 Thread Nikola Janceski
Okay, I was fuming mad. I have been struggling with a program that is supposed to send a simple e-mail... or so I thought! for 2 days I have sent test e-mails all of them with headers in the e-mail and attachments all screwy. then I found the culprit. at the top of my script is: local $\ = "\n";

Use of uninitialized value at ./tablecomp.pl line 780, chunk 299

2002-10-24 Thread naveen prabhakar
Hi,this might be a really silly question. what values are considered as uninitialized.how can I avoid this error. what does chunk 299 mean.the chunk number remains the same for a series of such error statements.I have just tried to read from a file into an array of records and a hash of recor

RE: Large numbers

2002-10-24 Thread Goodman Kristi - kgoodm
Yes, some of them are several GB, around 100 GB. How do I change that? -Original Message- From: Tanton Gibbs [mailto:thgibbs@;deltafarms.com] Sent: Thursday, October 24, 2002 3:36 PM To: Goodman Kristi - kgoodm; 'Robert Citek' Cc: [EMAIL PROTECTED] Subject: Re: Large numbers You do not

RE: Large numbers

2002-10-24 Thread Nigel Wetters
On Thu, 2002-10-24 at 16:57, Goodman Kristi - kgoodm wrote: > $recs = (-s "$outname.src") / $recl; > > ... on some large files, it will return a negative amount of > records. >From the snippet of code you've given me, it looks like $recl is sometimes set to a negative number. Can you post the code

Re: Large numbers

2002-10-24 Thread Robert Citek
Hello Kristi, At 10:22 AM 10/24/2002 -0500, Goodman Kristi - kgoodm wrote: >Does anyone know why Perl has a hard time with large numbers and sometimes >turns them into negative numbers? Sorry if I am not being specific enough, >but really all I am doing is calculating the number of records in a

Re: Splitting A large data file

2002-10-24 Thread Todd W
Javeed Sar wrote: i split one perl script, it got split ,i combined it , it's not working??? Though the siza are same. what is the problem. Mak sure you completely read the posts. When you asked how to join them back together I said the following would work: perl -e 'print <>' splitfile.1 s

Re: Mail Problem. Can Anyone Help Me?

2002-10-24 Thread dan
install this: http://www.cpan.org/authors/id/J/JE/JENDA/Mail-Sender-0.8.00.tar.gz dan "Bootscat" <[EMAIL PROTECTED]> wrote in message news:002701c27b63$c28881e0$f89c3dd0@;dhoggard... I'm setting up a mysqls email list. In the config file it has this varables # Path to SendMail $mailprog = "/usr/

RE: local()! Explain, please?

2002-10-24 Thread Nikola Janceski
I was using $\ globally for a larger script, but it adverse affects. Thanks to you and Jenda I now know that local doesn't act exactly like my. local() should be explained by it globally changing a variable but only to the end of the file/block/eval and my() makes a variable only exist, uniquely,

Re: Large numbers

2002-10-24 Thread Tanton Gibbs
You'll have to reinstall ActiveState, but I'm not that familiar with ActiveState so I'm not sure what flags should be set. Do you have the latest version? If not, you might just try that and see what it does. There should be a way to turn large file support on...maybe someone on this list who use

Re: How to rename file with a serial extension for backup?

2002-10-24 Thread Mark Goland
it means that the variable was only used once, cuased by -w. Since you dont usualy declair variables once, with out using them. Warn will generate that message. Mark - Original Message - From: "Satheesh Ramamoorthy" <[EMAIL PROTECTED]> To: "'Mark Goland'" <[EMAIL PROTECTED]>; <[EMAIL PROTE

Re: Configuration files

2002-10-24 Thread Michael Fowler
On Thu, Oct 24, 2002 at 05:18:07PM +0530, vinai AR wrote: > 1. Is there any functions in perl like GetProfileString( ) and > SetProfileString( ) SDK functions, which are used to access the > windows INI files. Not built in. The Config::Ini module available on CPAN provides an interface to p

Re: Email Script Help

2002-10-24 Thread Mark Goland
Well you could write a script that traverses those directory's every X minutes and stores all files. If a new record is found do a stat on a file get UID of creator do UID->username converssion, and a new entry and then e-mail away. Other then that, you would have to look into file system code, to

Re: Large numbers

2002-10-24 Thread Jim Thomason
How about: use Math::BigInt; use Math::BigFloat; Jim -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Email Script Help

2002-10-24 Thread Steve Grazzini
Bill O'Reilly <[EMAIL PROTECTED]> wrote: > > I am trying to setup a script on a linux (RedHat 7.3) box that > when someone copies a file to a particular folder it would trigger > an email being sent to a user. There are multiple folders I would > like to add this script to that all I would need

Re: How to rename file with a serial extension for backup?

2002-10-24 Thread chris
On Thu, 24 Oct 2002 00:03:48 -0700, [EMAIL PROTECTED] (John W. Krahn) wrote: >You mean something like this: > >my ( $file, $ext ); >do { >$file = sprintf 'test.%03d', ++$ext; >} while -e $file; > >open OUT, "> $file" or die "Cannot open $file: $!"; Exactly. Thank you. I received so man

a speedy find & grep?

2002-10-24 Thread Deb
re: Unix From the command-line, I'm currently running a find command piped to xargs grep: find . -f print | xargs egrep "some string to look for" There is an occassional requirement that this be done and it must parse a hierarchy of directories and files which number in the many thousands. Ru

OpenGL

2002-10-24 Thread Fernando Monteiro Duarte
Hi everyone, Does anybody here have already works with OpenGL module for Perl, and knows a place to find more related documentation about it?? Thanks in advance, Fernando Monteiro Duarte -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: a speedy find & grep?

2002-10-24 Thread Jeff 'japhy' Pinyan
On Oct 24, Deb said: > From the command-line, I'm currently running a find command piped to >xargs grep: > > find . -f print | xargs egrep "some string to look for" Why not use the -r option to e?grep to do recursive searches? egrep -r pattern . -- Jeff "japhy" Pinyan [EMAIL PROTECTED]

RSS feed without a Mod

2002-10-24 Thread Troy May
I was wondering if anybody knew of a complete script that can convert RSS feeds to HTML without the normal needed mod (XML::RSS?), to be used as an SSI on my page. My ISP will not install this mod for me. So I need one script that does it all with just an external URL for the input source. Any i

Re: a speedy find & grep?

2002-10-24 Thread Deb
Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> had this to say, > > Why not use the -r option to e?grep to do recursive searches? > > egrep -r pattern . H... Well, on Solaris 5.7, there is no -r option :-(. Could you, by any chance, be referring to a GNU egrep? If so, I can go check it out - I'

Re: a speedy find & grep?

2002-10-24 Thread Jeff 'japhy' Pinyan
On Oct 24, Deb said: >Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> had this to say, >> >> Why not use the -r option to e?grep to do recursive searches? >> >> egrep -r pattern . > >H... Well, on Solaris 5.7, there is no -r option :-(. Ouch. A grep variant with no recursive-feature? >Could you,

search results

2002-10-24 Thread Mariusz
Hi, How can I display certain number of search matches per page? I was thinking to pass the record ID as a hidden field from page to page and then repeat the search on each page, but is there a better way? thanks, M

Re: How to rename file with a serial extension for backup?

2002-10-24 Thread John W. Krahn
Chris wrote: > > On Thu, 24 Oct 2002 00:03:48 -0700, [EMAIL PROTECTED] (John W. Krahn) > wrote: > > >You mean something like this: > > > >my ( $file, $ext ); > >do { > >$file = sprintf 'test.%03d', ++$ext; > >} while -e $file; > > > >open OUT, "> $file" or die "Cannot open $file: $!"; >

RE: Job completion from queue under Windows '98

2002-10-24 Thread Rajendra Babu, Praveen
Thanks for your insights,Jenda. Please find my answers embedded within your questions.[ between >> ] -Original Message- From: Jenda Krynicky [mailto:Jenda@;Krynicky.cz] Sent: Thursday, 24 October 2002 10:02 PM To: Rajendra Babu, Praveen; '[EMAIL PROTECTED]' Subject: Re: Job completion