Perl script for parsing a DBX file?

2002-02-05 Thread Octavian Rasnita
Hi all, I am a new member. Do you know if there is a Perl script which parse the DBX files (the mail boxes from Outlook Express) and get all the email addresses? Thanks! Teddy, My dear email address is [EMAIL PROTECTED] _ Do You Yahoo!?

use strict

2002-02-05 Thread Octavian Rasnita
Hello all, I am a new member. please tell me what is used for the following line in a script: use strict; I saw that if I use it, this make sometimes my scripts to have errors and without it, they works. Thanks! Teddy, My dear email address is [EMAIL PROTECTED] __

Re: LISTBOX Problem

2002-02-06 Thread Octavian Rasnita
Can you select the items in the list with the keyboard? Or the OnChange is triggered automaticly when you use the arrow keys? Teddy, My dear email address is [EMAIL PROTECTED] - Original Message - From: "Mike" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 06, 2002

Re: Printing directory sizes

2009-04-01 Thread Octavian Rasnita
- Original Message - On Tue Mar 31 2009 @ 11:08, Octavian Râşniţă wrote: Do you know if du has a parameter that lets us see the size of the files from chosen directories? I've seen that it shows the disk usage only. From man du: -a, --all write counts for all files

Re: TCP/IP client

2009-06-09 Thread Octavian Rasnita
From: "Chas. Owens" 2009/6/9 Octavian Râşniţă : Hi, I need to create a TCP/IP client that connects to a server which accepts messages made from 3 parts: - a static start string of 9 bytes; - the body (that can have a variable length) - a static string of 9 bytes. ...and then it gives a respons

bug in perl?

2009-07-17 Thread Octavian Rasnita
Hi, I have tried the following calculation with ActivePerl 5.10.0 build 1004 under Windows XP Pro: print 0.79 - 0.798; And it gave the following result: -0.00801 which is obviously wrong. It doesn't matter too much the reasons, but is there a better way for doing such math calc

Re: bug in perl?

2009-07-17 Thread Octavian Rasnita
From: "Thomas Bätzler" Octavian Rasnita asked: I have tried the following calculation with ActivePerl 5.10.0 build 1004 under Windows XP Pro: print 0.79 - 0.798; And it gave the following result: -0.00801 which is obviously wrong. No, it isn't. Welcome to the

Re: bug in perl?

2009-07-17 Thread Octavian Rasnita
From: "Shawn H. Corey" Octavian Rasnita wrote: Well, in PHP that calculation is made well, so I think there is a bug in perl. No, it's not. PHP rounds off the number before printing. In Perl: printf "%.2f", $x; or $x = sprintf "%.2f", $x; Ok, tha

Re: recommendations for web/database applications

2009-07-27 Thread Octavian Rasnita
From: "David Christensen" Dan wrote:> Firstly, I hate web applications with a passion. They're cheap, clunky approximations of desktop applications, Agreed. Nothing beats a good set of native binary widgets for expressiveness and responsiveness. > Gtk2::Ex::DBI, Gtk2::Ex::Datasheet::DBI,

Re: file uploader

2009-08-03 Thread Octavian Rasnita
From: "Randal L. Schwartz" "Octavian" == Octavian Râşniţă writes: Octavian> I was recommended that I shouldn't upload such big files using HTTP, Octavian> but it would be an easier solution if it would be possible, and I Octavian> would like to be able to use HTTP for uploading files up to

Re: Math::GMP

2010-02-25 Thread Octavian Rasnita
From: "Dave Tang" Dear list, I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module. I have installed a GMP library (required for Math::GMP) but when I try to install Math::GMP I get an error. Here's the transcript. May someone shed some light? I don't know your OS or versi

Re: Writing Perl scripts to run on any OS'es

2010-04-19 Thread Octavian Rasnita
From: "newbie01 perl" Hi all, Am wanting to change my Perl scripts to get it to run on several UNIX flavours and Windows. At the moment, the only way I can think of how to accomplish that is always having the following checks on each and every sub that I have. Can anyone please suggest if th

Re: How to manage large Conditional Statement

2010-04-21 Thread Octavian Rasnita
From: "Uri Guttman" > MC> Uri: I think the quoting is much a religious issue as everyone has their > MC> preferred way, but I now know what you meant. :-) > > it isn't religious. it is just no one is taught the right way > anymore. it used to be always done this way (in the good very old > day)

Re: One new Recipe has arrived: When shall we use default variables?

2010-06-27 Thread Octavian Rasnita
From: "Shawn H Corey" > "Real Perl Programmers prefer things to be visually distinct." > Larry Wall Maybe he wanted to say... Python. :-) Octavian __ Information from ESET NOD32 Antivirus, version of virus signature database 5232 (20100627) __ The message was checked

Re: getopt::long

2010-07-06 Thread Octavian Rasnita
Hi, use strict; use warnings; use Getopt::Long; my %hash; GetOptions(\%hash, "first=s", "second|s=s", "third=i"); print $hash{first}, $hash{second}, $hash{third}, "\n"; -- Octavian - Original Message - From: "Unknown User" To: "beginners" Sent: Tuesday, July 06, 2010 7:49 AM Subje

Re: DBI under SOAP/mod_perl

2010-07-18 Thread Octavian Rasnita
Does the $dsn contain the full path to the database? -- Octavian - Original Message - From: "Dermot" To: "Perl Beginners" Sent: Friday, July 16, 2010 7:29 PM Subject: DBI under SOAP/mod_perl Hello All, (This is perl, v5.8.8). Sorry if this is a bit specialised (EG not v. beginner

Wrong subclassing?

2010-08-06 Thread Octavian Rasnita
Hi, I have a question regarding a set of modules that subclass each other, and I hope it is appropriate for this group. Here is a test program (with no use strict and warnings for beeing concise): # program.pl: #!/usr/bin/perl use Third; Third->new->run; # Third.pm: package Third; use paren

Re: diff of two files

2008-03-24 Thread Octavian Rasnita
Here is a diff program made in perl: #!/usr/bin/perl # # `Diff' program in Perl # Copyright 1998 M-J. Dominus. ([EMAIL PROTECTED]) # # This program is free software; you can redistribute it and/or modify it # under the same terms as Perl itself. # # Altered to output in `context diff' format (but

OLE

2008-03-26 Thread Octavian Rasnita
Hi, Can anyone give me some hints about how I could translate a simple JScript function into a perl one? The script is below, but what I don't know how to do are the following lines: AmiBroker = new ActiveXObject( "Broker.Application" ); fso = new ActiveXObject( "Scripting.FileSystemObject"

LZMA

2008-04-15 Thread Octavian Rasnita
Hi, Does anyone know if there is a way of creating/extracting an LZMA archive with perl without using an external program? Thank you. Octavian -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: LZMA

2008-04-15 Thread Octavian Rasnita
From: "Chas. Owens" <[EMAIL PROTECTED]> Does anyone know if there is a way of creating/extracting an LZMA archive with perl without using an external program? snip Take a look at Compress::unLZMA*. * http://search.cpan.org/dist/Compress-unLZMA/lib/Compress/unLZMA.pm Thank you. It helped

Re: wrote-only language?

2008-04-23 Thread Octavian Rasnita
Perl is a write-only language because its main advantage "There is more than one way to do it". It is the most flexible language, so there can be very many styles of programming in perl, and because of this it is much harder to create a big team of programmers in perl than in other languages.

Re: the most pupular language - perl

2008-04-26 Thread Octavian Rasnita
This popularity depends on many factors, so a simple comparison is absolutely irrelevant. It depends on the country and region. In my country there almost 0 job offers asking for perl skills. Most of the offers ask for .net, Java, PHP, asp.net, C++, even python, but very few times ask for perl

Re: Creating PID file

2008-04-27 Thread Octavian Rasnita
Hi, Search on search.cpan.org for File::PID and download and install that module. It might help you to create PID files. To clarify the need for using a PID file, I think it needs to be used for example when somebody wants to run a program manually or from a chron job but when the admin doe

Re: sql and perl

2008-04-27 Thread Octavian Rasnita
Hi, You didn't say if you are running Windows, Linux or something else... If you have Linux, you probably already have perl. If you use Windows, get and install perl from www.activestate.com. You must also get and install MySQL from www.mysql.com if you don't have it installed. Then you ne

Re: web scraping

2008-04-28 Thread Octavian Rasnita
First search with search.cpan.org for "Finance" without quotes and see if you can't find a module that downloads the data you want, and if you don't, you can use LWP::UserAgent or WWW::Mechanize and regular expressions to do it. A very simple example that gets the title of Google's page: use LWP

Re: I want a perl script for?

2008-04-30 Thread Octavian Rasnita
From: "Vinayak dutt" <[EMAIL PROTECTED]> Am vinayak here. As am new to Perl and their is a requirment which says - 1. There exists a .zip which contains folders and file. 2. Search for 'makefile' in the respective folders and store them in a text file. 3. And search for .c files in them

Re: Multiline comment in Perl

2008-05-16 Thread Octavian Rasnita
Hi, Perl doesn't have a multiline comment mark. You can use perldoc marks in order to comment what you want, or include the content in a string, like: Perldoc style: =start Here are the lines you want to comment =cut Or using a string: q/ Here are the lines you want to comment /; The prog

Re: Multiline comment in Perl

2008-05-16 Thread Octavian Rasnita
; <[EMAIL PROTECTED]> To: "Perl Beginners" Sent: Friday, May 16, 2008 7:53 PM Subject: Re: Multiline comment in Perl Octavian Rasnita wrote: - Original Message - From: "sivasakthi" <[EMAIL PROTECTED]> How to comment Multiple lines in Perl? Perl do

Re: Multiline comment in Perl

2008-05-16 Thread Octavian Rasnita
From: "Rob Dixon" <[EMAIL PROTECTED]> (Once again, please bottom-post replies to this group. It maintains readability for extended threads. Salutations and signatures should always be edited out. You are responsible for the whole of your post, not just your own material.) Maybe it improves th

Re: Multiline comment in Perl

2008-05-19 Thread Octavian Rasnita
From: "Rob Dixon" <[EMAIL PROTECTED]> The documentation that John referred you to recommends =begin comment : =end Which may be a trifle awkward, but I'm sure there are worse things that happen to you in your day. It takes less than a second to type, and if you do it a lot you could set

Re: Multiline comment in Perl

2008-05-19 Thread Octavian Rasnita
From: "Rob Dixon" <[EMAIL PROTECTED]> Yes, I'm afraid I misquoted the entry from perlfaq7, which actually recommends =begin comment : =end comment =cut which is clumsy, to say the least. However I use =begin comment : =cut which works fine, and I don't think contravenes POD syntax except t

Re: Multiline comment in Perl

2008-05-20 Thread Octavian Rasnita
From: "Robert Hicks" <[EMAIL PROTECTED]> Cheating...but: http://search.cpan.org/~kane/Acme-Comment-1.02/lib/Acme/Comment.pm This module works fine. And it takes little code to just write use Acme::Comment; then use the C comment style. I've seen that the multiline comments can also contain ot

Sending special chars in email header

2008-05-21 Thread Octavian Rasnita
Hi, I've tried to send some UTF-8 chars in the "To" and "From" fields in the header of a message, using Mail::Sender, and I also tried more combinations for setting the encoding and charset, but the chars don't appear correctly in the message. It should be possible to use those special chars l

Re: Multiline comment in Perl

2008-05-21 Thread Octavian Rasnita
From: "Dr.Ruud" <[EMAIL PROTECTED]> Variant: sub half { return unless defined $_[0]; return $_[0] / 2; q/* Returns $val divided by 2 */ } q/* This is a multi- line comment. */ if 0; -- Affijn, Ruud Another va

Re: Sending special chars in email header

2008-05-21 Thread Octavian Rasnita
on't know if it will work in all other mail clients. Thank you. Octavian - Original Message - From: "Jeff Peng" <[EMAIL PROTECTED]> To: "Perl Beginners" Sent: Wednesday, May 21, 2008 3:13 PM Subject: Re: Sending special chars in email header >

same variable defined twice

2008-05-22 Thread Octavian Rasnita
Hi, I've tried the following script and it works fine: use strict; my $text = 1; my $text = 2; print $text; Shouldn't perl disallow defining the $text variable a second time in the same script if using "use strict"? Thank you. Octavian -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: any ruby programmers who are perl users?

2008-06-05 Thread Octavian Rasnita
- Original Message - > Whee! Inflammatory topic! > > 1) If you are interested in learning to program for the sake of > programming (vs getting XYZ done), Perl probably isn't the best first > choice. (Not that its the last choice or anything, but not first.) I'd > personally advocate C/C++

Re: any ruby programmers who are perl users?

2008-06-06 Thread Octavian Rasnita
From: "Dr.Ruud" <[EMAIL PROTECTED]>> Octavian: >> Yitzle: > >>> 1) If you are interested in learning to program for the sake of >>> programming (vs getting XYZ done), Perl probably isn't the best first >>> choice. (Not that its the last choice or anything, but not first.) >>> I'd personally advoca

Re: How attach files and send mails on perl????

2008-06-11 Thread Octavian Rasnita
From: "Armin Garcia" <[EMAIL PROTECTED]> Hi Well i try to attach a file, but i dont know what function or method i need to use, here is my code, i hope anybody can help me thanks (im only want to attach files, thanlks ) I found it more easy to use Mail::Sender::Easy for sending tex

one liner for replacing under Windows?

2008-06-14 Thread Octavian Rasnita
Hi, Is there a one-liner command that can replace a certain text with another in more files specified with wildcards like *.html that works under Windows cmd? ...Of course, I know how to do that if I embed a full program in a single line, but it would be too long and I wonder if there is a w

Re: one liner for replacing under Windows?

2008-06-14 Thread Octavian Rasnita
From: "Xavier Noria" <[EMAIL PROTECTED]>> On Sat, Jun 14, 2008 at 9:56 AM, Octavian Rasnita <[EMAIL PROTECTED]> wrote: Is there a one-liner command that can replace a certain text with another in more files specified with wildcards like *.html that works under Windows

Re: Gui recommendation.

2008-06-15 Thread Octavian Rasnita
From: "Francisco Valladolid" <[EMAIL PROTECTED]> Hi Folks. I need write a desktop app based on Perl, and need opinions about the best GUI choice, for this purpose. I recommend WxPerl, which uses wxWindows widgets. It is portable on more operating systems, it uses the native libraries of the

Re: Capture URL parameter

2008-06-17 Thread Octavian Rasnita
From: "luke devon" <[EMAIL PROTECTED]> Dear Friends I am going to capture some values/parameters which are comes trough URL. like Client_IP , domain name .etc. But i have no idea how it would be done by perl. Here i am going to use bcoz this program based on squid-cache server. Those envir

Re: question on appending file

2008-06-25 Thread Octavian Rasnita
From: "bob" <[EMAIL PROTECTED]> > Hi > I wrote a program to append a number to an existing file. > but found a problem that i can't understand > > *** > code1: > my $cnt= 0 > open FILE, ">>diff.txt"; > > while () { You want to read from the fil

recording with perl

2008-07-06 Thread Octavian Rasnita
Hi, Does anyone know if there is a perl module that can be used for recording in .wav format? (One that can be used under both Linux and Windows, or at least under Windows.) Thank you. Octavian -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: recording with perl

2008-07-07 Thread Octavian Rasnita
From: "Jay Savage" <[EMAIL PROTECTED]> On Sun, Jul 6, 2008 at 4:37 AM, Octavian Rasnita <[EMAIL PROTECTED]> wrote: Hi, Does anyone know if there is a perl module that can be used for recording in .wav format? (One that can be used under both Linux and Windows, or

Re: closing dbh with active statement handles

2008-07-08 Thread Octavian Rasnita
From: "luke devon" <[EMAIL PROTECTED]> Hi Friends, Here, I am trying to connect sqlite DB and access some data for matching values with STDIN.But when i try to debug the code it gives following message. I went through google , and couldn't find any solution yet. Can some body help me pelase.

Re: perl module version checking

2008-07-09 Thread Octavian Rasnita
From: "Anirban Adhikary" <[EMAIL PROTECTED]>> Dear List > Can U please tell me how to check the version of any installed module in > perl. If I want to check the version of version of DBI module then what is > the syntax for it? > > Thanks & Regards in advance > Anirban Adhikary You can do: perl

Re: regular expression to exclude a phrase

2008-07-21 Thread Octavian Rasnita
From: "Rob Coops" <[EMAIL PROTECTED]> > You could simply say this: > if ( ! m/ab/ ) { > #make the world go round > } > Or assuming you are looping thru a list you could say something like: > foreach my $item ( @list ) { > next if ( $item =~ m/ab/ ); > #make the world go round > } I also had this p

peer to peer programming

2008-08-13 Thread Octavian Rasnita
Hi, Does anyone know where I could find information about creating peer to peer applications in perl? (Like messengers that don't require a base server...) If it is possible to do it in perl, please tell me where I can find more about it if you know. Thank you. Octavian -- To unsubscribe

Re: Merge HTML Files with PERL

2008-08-16 Thread Octavian Rasnita
From: "David Allender" <[EMAIL PROTECTED]> Hey all, Ive been searching around the net and the web and can't really find anything, so here goes... I'm in sort of a dilemma, what I have is a HTML file "archive.html" and a "build.html" what i want to do, is get the body of the "build.html" and put

inserting unique records in an SQLite DB

2008-08-20 Thread Octavian Rasnita
Hi, I have an SQLite database that has a field with a unique constraint and I want to be able to insert records as fast as possible. The program works fine if I use insert or ignore into table_name... but the problem is that the primary key field which has autoincrement option skips the ID

Re: inserting unique records in an SQLite DB

2008-08-21 Thread Octavian Rasnita
Hi, From: "Rob Dixon" <[EMAIL PROTECTED]> Since this is a Perl forum it is helpful to use the /full syntax/ of any SQL that your Perl is using. (I assume you actually have some Perl behind all this?) And in particular you should avoid abbreviating non-standard SQL, so that at least we have s

Re: inserting unique records in an SQLite DB

2008-08-21 Thread Octavian Rasnita
From: "Dr.Ruud" <[EMAIL PROTECTED]> "Octavian Rasnita" schreef: but the problem is that the primary key field which has autoincrement option skips the ID of each record which is not inserted because it is already in the database, and I don't want that.

Re: inserting unique records in an SQLite DB

2008-08-21 Thread Octavian Rasnita
From: "Dr.Ruud" <[EMAIL PROTECTED]> "Octavian Rasnita" schreef: Dr.Ruud: Octavian Rasnita: but the problem is that the primary key field which has autoincrement option skips the ID of each record which is not inserted because it is already in the database, and I do

Re: Send Mail with attachment

2008-10-22 Thread Octavian Rasnita
From: <[EMAIL PROTECTED]> > Hi All, > > I'm using perl module MIME::Lite to sent out email with attachments, > may I know what "Type" should I define to attach any type of files, > for instance .jpg, .xls, .doc, .pdf and etc without checking the > attached file type. Is there any global variable

Re: Curly braces and the logic of PERL

2008-10-27 Thread Octavian Rasnita
"the basic intent is to provide visual clues" Well, this is a limited approach, generated exactly by the fact that some programmers don't really care about all those who read, but care the most about their own preferences. I am blind and the visual clues don't mean anything, but make the thin

Re: Curly braces and the logic of PERL

2008-10-28 Thread Octavian Rasnita
From: "Jenda Krynicky" <[EMAIL PROTECTED]> That's nice and dandy if you do read the thread in one go. If you read the original message, then half a day later three separate responses, next day a response to the third response and another response to the original post and ... and of course in the

Re: Curly braces and the logic of PERL

2008-10-28 Thread Octavian Rasnita
From: "Jack Gates" <[EMAIL PROTECTED]> On Tuesday 28 October 2008 10:06:44 am Jenda Krynicky wrote: We can't care about ALL those who read it. The best we can do is to care about MOST. I know it's inconvenient if you are not part of the majority, but there is little we can do. That is a cold

Re: perl version for windows

2008-11-23 Thread Octavian Rasnita
From: "David Ehresmann" <[EMAIL PROTECTED]> ActivePerl-5.10.0.1004-MSWin32-x86-287188 Is this the best path or choice to install perl on windows? It depends on what you want to do in perl, but generally ActivePerl is the best choice for Windows. What is the difference between learning perl

Re: Perl DBI connect from Windows

2008-12-22 Thread Octavian Rasnita
From: "ficovh" You need install the Oracle Perl DBD driver in order to connect to Oracla DB http://search.cpan.org/~pythian/DBD-Oracle-1.22/Oracle.pm In windows use the Perl Package Manager for install it. As far as I know, if using perl 5.10.0, there is no a ppm package that offers the Ora

Re: copying a webpage and pasting to a text file

2008-12-26 Thread Octavian Rasnita
Or search for Finance or Quotes with search.cpan.org because there are more perl modules that can be used for downloading stock quotes. Octavian - Original Message - From: "Bob goolsby" To: "Chas. Owens" Cc: Sent: Friday, December 26, 2008 4:09 AM Subject: Re: copying a webpage and

Re: Appending sequential numbers to a file, one number per line

2008-12-29 Thread Octavian Rasnita
Hi, You can do it in more ways. Try: use strict; my $nr; open(my $in, "<", "file.csv"); open(my $out, ">", "result.csv"); while (<$in>) { chomp; print $out "$_," . $nr++ . "\n"; } close $out; close $in; Or you can also try: use strict; my ($in, $content); {local $/; open($in, "+<", "file.c

Re: Send email using smtp

2009-01-05 Thread Octavian Rasnita
From: "Fúlvio" Hi all, I am trying to send an email using the following code: use Net::SMTP; $smtp = Net::SMTP->new("smtp.yahoo.com"); $smtp->mail('fulviocg'); but the error below is happening: Can't call method "mail" on an undefined value at Can someone help me? Hi, Can you use Yah

Re: Send email using smtp

2009-01-06 Thread Octavian Rasnita
From: "Fúlvio" > Hi Octavian, > > I don't need to use this server. I need only to send an email, but as > I don't know perl > very well I get an example using SMTP and yahoo server. You can't send an email without using an SMTP server, or sendmail, qmail... Do you use an SMTP server for sending

Re: Send email using smtp

2009-01-06 Thread Octavian Rasnita
From: "Fúlvio Figueirôa" Hi Octavian, I solved my problem using sendmail with the code below: open (MAIL, "|/usr/sbin/sendmail -t "); print MAIL "From: someaddr...@somedomain\n"; print MAIL "To: someaddre...@somedomain\n"; print MAIL "Content-Type: text/plain\n"; print MAIL "Subject: Very simpl

perlscript

2009-01-30 Thread Octavian Rasnita
Hello, Does anyone have some recommendations for some tutorials/documentation for using perlscript as a client-side language in browsers? Thank you. Octavian -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.

Re: perlscript

2009-01-30 Thread Octavian Rasnita
From: "Telemachus" On Fri Jan 30 2009 @ 5:34, Octavian Rasnita wrote: Hello, Does anyone have some recommendations for some tutorials/documentation for using perlscript as a client-side language in browsers? Thank you. Octavian Never knew that there was such an animal. A qu

Re: perlscript

2009-01-30 Thread Octavian Rasnita
From: "Erez Schatz" On 1/30/2009 5:34 PM, Octavian Rasnita wrote: Hello, Does anyone have some recommendations for some tutorials/documentation for using perlscript as a client-side language in browsers? I really recommend against it, whatever was of PerlScript is immensely

Re: Errors in parsing XML

2009-01-31 Thread Octavian Rasnita
- Original Message - > Hi All Im using XML::RSS for parsing RSS feeds, it works fine for most feeds, but sometimes it gives me following error: I use XML::FeedPP for parsing RSS and Atom feeds and it seems to work fine. Maybe it can help you... Octavian -- To unsubscribe, e-mail: be

Re: Class::DBI vs DBIx::Class

2009-02-03 Thread Octavian Rasnita
From: "Dermot" > 2009/2/3 Jay Savage : >> Hi All, >> >> I was wondering if someone could point me toward a useful comparison >> of Class::DBI and DBIx::Class. Going through the docs, they seem to be >> much of a muchness. Are there any clear advantages to DBIxC? I'm I haven't used Class::DBI, but

listing all the needed modules

2009-02-04 Thread Octavian Rasnita
Hi, Does anyone know if there is a perl module that has a helper script which finds and lists all the modules which are needed by a certain perl program? Thanks. Octavian -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http:

way of finding the dependencies

2009-02-05 Thread Octavian Rasnita
Hello, I asked about a perl module that could allow finding the dependencies of a program a few days ago. If it helps to somebody, I found the site http://deps.cpantesters.org/ I didn't know about it. It could be helpful for this, and for other things also. HTH. Octavian -- To unsubscribe, e

Compiling CPAN modules with VS.net

2004-10-31 Thread Octavian Rasnita
Hi all, Some modules downloaded from CPAN need to be compiled in order to be installed and I know that I can use Visual Studio 6 (under Windows) for this task. Do you know if I will be able to compile those modules after I will install Visual Studio .net (7)? Or, if this is not possible, do you k

Sending a compressed html

2004-10-31 Thread Octavian Rasnita
Hi, Please tell me how can I compress the html with gzip and send it to the clients' browsers in order to be transfered faster. Thanks. Teddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Multi Line text processing

2004-11-01 Thread Octavian Rasnita
The answer is "the entire memory of your computer". Teddy - Original Message - From: "Ajey Kulkarni" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, November 01, 2004 9:27 PM Subject: Re: Multi Line text processing >> my $txt = do { local $/; }; Just on a side note, has an

Installing DBD::mysql

2004-11-05 Thread Octavian Rasnita
Hi, I have tried to install the module DBD::mysql but without success. I have tried 2 ways: perl -MCPAN -e 'install DBD::mysql;' And I have also tried downloading the archive from search.cpan.org, then using perl Makefile.PL, make,... After trying to install it using the CPAN module or after t

converting the elements of a hash to uppercase

2004-11-12 Thread Octavian Rasnita
Hi all, Please tell me how to convert the elements of a hash to uppercase, if I can access that hash only by reference. For example, I have something like: my $ref = { 'a' => 'aaa', 'b' => 'bbb', 'c' => 'ccc' }; And I want to make 'a' to be 'A', 'b' to be 'B' and so on, but the values of the ha

Re: Parsing Excel Spreadsheets for Itinerary notifications

2004-11-19 Thread Octavian Rasnita
Yes you can read a .xls file using Spreadsheet::ParseExcel module. (and Spreadsheet::WriteExcel if you want to create a .xls file). But I don't know how you can send a messenger message... Teddy - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, Novemb

Re: Using Perls built in GREP

2004-11-22 Thread Octavian Rasnita
Oh yes, me me!!! Here is the program: print "This program should do what you want'; That was the program. I hope it will work. If it won't or if it will give an error, sorry. The apple was pretty good. :-) Teddy - Original Message - From: "FlashMX" <[EMAIL PROTECTED]> To: "Perl Begin

Scheduling a program

2004-11-26 Thread Octavian Rasnita
Hi all, I want to run a program 3 times per each minute, every day from Monday to Friday, from 10:15 until 14:15. Can I set this in a cron job, with so many restrictions, or do I have another choice? If I can do it in a cron job, can you help me with the syntax? Thank you very much! Teddy --

Re: 're'-redirecting STDOUT back to STDOUT after writing to a file

2004-11-26 Thread Octavian Rasnita
Use select() function. Read perldoc -f select Teddy - Original Message - From: "Matthias Kraatz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 27, 2004 12:20 AM Subject: 're'-redirecting STDOUT back to STDOUT after writing to a file Hi, this might be a reall

Messenger module?

2004-11-30 Thread Octavian Rasnita
Hi all, Does anyone know if there is a perl module that could communicate as a client with MSN Or Yahoo or Skype or AOL messengers? Thanks. Teddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Passing hashes as parameters to construct objects

2004-12-02 Thread Octavian Rasnita
Hi, You can create a "new" function as follows: package X; sub new { my $init = shift; my $class = ref($init) || $init; my $self = {}; #or if you want to pre-initialize some values, you can do: #my $self = {option1 => 'value1', option2 => 'value2}; return bless($self, $class); } Teddy -

Re: Getting the dir structure

2004-12-04 Thread Octavian Rasnita
All the files are automaticly closed when the perl program ends. Teddy - Original Message - From: "Dan Jones" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 05, 2004 1:25 AM Subject: Re: Getting the dir structure On Thu, 2004-12-02 at 00:13 -0800, Mr M senthil kumar

Re: I am looking for a free perl compiler.

2004-12-08 Thread Octavian Rasnita
So the conclusion is that perl code cannot be really hidden (for comercial purposes)? A license is equal to zero in some countries... so that's not a solution. Teddy - Original Message - From: "Jonathan Paton" <[EMAIL PROTECTED]> To: "Chris Devers" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]

Re: Authen-Captcha Module

2004-12-13 Thread Octavian Rasnita
It doesn't work well at all. It makes the entire web site absolutely inaccessible for the blind users. Teddy - Original Message - From: "Mike Blezien" <[EMAIL PROTECTED]> To: "Perl List" <[EMAIL PROTECTED]> Sent: Tuesday, December 14, 2004 3:49 AM Subject: Authen-Captcha Module Hello,

MySQL and flock

2004-12-13 Thread Octavian Rasnita
Hi all, Does anyone know if MySQL uses flock when it modifies the data from a database for locking the files in which are kept the modified tables? I want to make a perl program which gets the file and store a back-up but I don't want to get the files while they are modified. Thank you. Tedd

Re: Simple question

2004-12-13 Thread Octavian Rasnita
You have to send the message in html format. You could do this with the module MIME::Lite. I guess you know how to create a bold text in html. Teddy - Original Message - From: "Debbie McNerney" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 13, 2004 10:48 PM Subject:

Re: MySQL and flock

2004-12-14 Thread Octavian Rasnita
if this is possible, because now I am thinking that if my program starts copying the files, they might start beeing updated just after I have started the copy process... Teddy - Original Message - From: "Ron Goral" <[EMAIL PROTECTED]> To: "Octavian Rasnita" <[EMA

Re: any perl project ideas

2004-12-15 Thread Octavian Rasnita
Hi, Write a guestbook, then a search engine. Teddy - Original Message - From: "Harbhajan Julka" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 15, 2004 9:10 AM Subject: any perl project ideas Hey all, -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Installing Gd

2004-12-20 Thread Octavian Rasnita
Hi all, I have tried to install Gd using the following: perl -MCPAN -e "install Gd;" Perl downloaded the package, and tried to install it, but it ended telling "Cannot install Gd. Don't know what it is". Do you have any idea what could be the problem or how to install Gd? Note: I use Perl 5.8.

Eficiency advice

2004-12-20 Thread Octavian Rasnita
Hi, Which would be the best method for creating a better program, accessing the content of a hash or a dereference like $hash{key}, $ref->{key} in many places in the script, or using: my $value = $hash{key}, ... my $value = $ref->{key} then using $value for many times in the rest of the script?

Re: Installing Gd

2004-12-20 Thread Octavian Rasnita
Thanks. I have tried that, but it told me that it cannot find the ppd for GD. Teddy - Original Message - From: "Ing. Branislav Gerzo" <[EMAIL PROTECTED]> To: Sent: Monday, December 20, 2004 4:40 PM Subject: Re: Installing Gd Octavian Rasnita [OR], on Monday, Decembe

Re: Installing Gd

2004-12-21 Thread Octavian Rasnita
GD, in order to add it. Thank you. Teddy - Original Message - From: "Ing. Branislav Gerzo" <[EMAIL PROTECTED]> To: Sent: Monday, December 20, 2004 11:19 PM Subject: Re: Installing Gd Octavian Rasnita [OR], on Monday, December 20, 2004 at 17:59 (+0200) wrote about: OR>

ppm error

2004-12-22 Thread Octavian Rasnita
Hi all, I have tried to install Text::Autoformat and here is what it have done: Downloaded 17035 bytes. Extracting 5/5: blib/arch/auto/Text/Autoformat/.exists Installing F:\usr\html\site\lib\Text\Autoformat.html Successfully installed Text-Autoformat version 1.12 in ActivePer

problem installing GD

2004-12-22 Thread Octavian Rasnita
Hi all, I have tried installing GD under Linux with Perl 5.8.4 but it gave me the errors below. Does anyone know what can I do to be able to install GD? I have tried: perl -MCPAN -e 'install GD;' Thank you. ... at t/GD.t line 13 Compilation failed in require at t/GD.t line 13. BEGIN failed--c

Script run time

2004-12-24 Thread Octavian Rasnita
Hi, Does anyone know how can I find how many seconds takes a program to run if it runs using mod_perl? I have found that (times)[0] is not working correctly when using mod_perl. Thank you. Teddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <

Why a program ran with mod_perl runs slower?

2004-12-24 Thread Octavian Rasnita
Hi all, I have tried testing mod_perl with the following script: my $begin = (times)[0]; print "Content-type: text/html\n\n"; sub fib { $_[0] < 2 ? return $_[0] : return fib($_[0] - 1) + fib($_[0] - 2); } $f = fib(29); my $end = (times)[0]; print($end - $begin); -- Well, if I run this script

  1   2   3   4   5   >