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:
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
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
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
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
> 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
> 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
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
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
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
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
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
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):
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
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
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
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]
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.
-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
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
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
Perl for Palm??? Here you go:
http://sourceforge.net/projects/palmperl/
Regards,
-
Alex Schmitz
-
>
> -Original M
Except there is nothing there, so sorry! Ignore me...
-
Alex Schmitz
Intel Customer Support EMEA
[EMAIL PROTECTED]
01793 40 4266
-
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
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'
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
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
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
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.
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
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
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
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
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
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
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
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
.--[ 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
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
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
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
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
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
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
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
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
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
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";
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
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
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
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
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
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/
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,
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
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
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
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
How about:
use Math::BigInt;
use Math::BigFloat;
Jim
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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
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]
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]
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
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'
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,
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
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: $!";
>
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
71 matches
Mail list logo