RE: file upload to MySql

2002-09-21 Thread John Almberg
You can do the upload with a form. Read any HTML reference and check out the tag. The web server will store the uploaded file as a temporary file. Your form handler will have to store it someplace permanent. This is pretty simple using the CGI module. Check out the CGI module documentation for co

Re: file upload to MySql ??

2002-09-21 Thread Mariusz
does your solution require the file to be sitting on the host where the MySql is? If so, is there also an option of uploading it straight from the user's computer? I'm trying to give an option of uploading a picture (and I want to store it with the rest of my record in the MySql db) to my visitors

Re: ActivePerl: Any Alternatives to MS-DOS Prompt?

2002-09-21 Thread rob
Marshall Goldberg wrote: >In Windows, Perl runs from the command (DOS) prompt, and I can't scroll in the >command window. > > sorry for the dual reply but go to start> run> cmd on nt /2000 or command on 95/98 click on the upper left hand dos icon click edit > scroll or properties and modify

Re: ActivePerl: Any Alternatives to MS-DOS Prompt?

2002-09-21 Thread rob
Marshall Goldberg wrote: >In Windows, Perl runs from the command (DOS) prompt, and I can't scroll in the >command window. > > sorry for the dual reply but go to sratr > run> cmd on nt /2000 or command on 95/98 on the upper left hand dos icon click edit > scroll or properties and modify the

Re: ActivePerl: Any Alternatives to MS-DOS Prompt?

2002-09-21 Thread rob
Marshall Goldberg wrote: >In Windows, Perl runs from the command (DOS) prompt, and I can't scroll in the >command window. > >Is there anything I can install (besides Linux :) that will let me run Perl >applications and view console output in a scrollable window? > > Try http://open-perl-ide.

Re: Perl or Object Oriented Perl?

2002-09-21 Thread Randal L. Schwartz
> "wiggins" == wiggins <[EMAIL PROTECTED]> writes: wiggins> I am currently and finally working my way through the OOP wiggins> Perl book by Conway and a few of the things seem a little wiggins> dated with respect to how Perl can handle things, and the wiggins> preferred method at least from

Re: ActivePerl: Any Alternatives to MS-DOS Prompt?

2002-09-21 Thread Tim Musson
Hey Marshall, My MUA believes you used Microsoft Outlook Express 5.50.4807.1700 to write the following on Saturday, September 21, 2002 at 6:23:46 PM. MG> In Windows, Perl runs from the command (DOS) prompt, and I can't MG> scroll in the command window. MG> Is there anything I can insta

ActivePerl: Any Alternatives to MS-DOS Prompt?

2002-09-21 Thread Marshall Goldberg
In Windows, Perl runs from the command (DOS) prompt, and I can't scroll in the command window. Is there anything I can install (besides Linux :) that will let me run Perl applications and view console output in a scrollable window? TIA, Marshall Goldberg

question to anyone using Perl for bio-sciences

2002-09-21 Thread nkuipers
Hello, I use Perl for DNA data mining and I'm just wondering what [non-bioperl] CPAN modules you make good use of in your work. Handling arbitrarily large/nested data structures is the main badboy here, but science-Perlers will know already the nature of the beast. I've hit a bit of a rut in

background process

2002-09-21 Thread Paul Tremblay
I am writing a script in perl to backup my system, and would like to run a backgroud process to burn each CD as it is created. Right now I use this command my $fail=system "tar -vr -T $files_to_back -f $tar_file"; to create a tar file. If the tar file is bigger than 650 M, then I will have to

Re: perl - good programming principles

2002-09-21 Thread drieux
On Saturday, Sep 21, 2002, at 01:41 US/Pacific, RP C987342 wrote: [..] >> That solve you then need to resolve what 'performance' really >> means - are you counting cycles? at the code monkey end or the >> cpu end??? > > cpu end. p0: first off thank you for forbearing on the bit of tongue in chee

Re: Encryption/Decryption

2002-09-21 Thread zentara
On Sat, 21 Sep 2002 11:31:38 -0400, [EMAIL PROTECTED] (Zentara) wrote: >On Fri, 20 Sep 2002 08:24:30 -0400, [EMAIL PROTECTED] (Rob Das) >wrote: > >>Hi List: >> >>Can anyone suggest a way/module to encrypt the contents of a file then >>decrypt it to get the contents back? I see many different modu

Re: how to find memory leaks?

2002-09-21 Thread Steve Grazzini
David <[EMAIL PROTECTED]> wrote: > the heap will not go away (because Perl does it's own memory > management) until the client exit.). Actually, the default config uses libc malloc. (check perl -V) -- Steve perldoc -qa.j | perl -lpe '($_)=m("(.*)")' -- To unsubscribe, e-mail: [EMAIL PROTEC

Re: Encryption/Decryption

2002-09-21 Thread zentara
On Fri, 20 Sep 2002 08:24:30 -0400, [EMAIL PROTECTED] (Rob Das) wrote: >Hi List: > >Can anyone suggest a way/module to encrypt the contents of a file then >decrypt it to get the contents back? I see many different modules on CPAN, >but wondered if anyone can recommend one. I would be doing the en

Re: Perl & MySQL

2002-09-21 Thread Wiggins d'Anconia
First off for those MySQL newbies in the crowd you might find this helpful, I compiled it a while ago but I am pretty sure it is still accurate: http://www.residualselfimage.com/mysql_pkt_ref/ Essentially you need to start with the mysql documentation, or a beginners guide on that, then check

Perl & MySQL

2002-09-21 Thread dan
I'm in the process of writing IRC Services in Perl. I know most of you won't know anything about IRC in this aspect at least. However what I need help with is being able to store the services' data in a MySQL database. I know absolutely nothing about MySQL. At the moment it's using a flat text fil

Re: perl - good programming principles

2002-09-21 Thread John W. Krahn
Rp C987342 wrote: > > In java, I would be careful in choosing a vector vs arraylist. > In c/..., arrays have fixed length. In perl, when I say > my @arr = ; > I do not (or cannot?) specify the length of the array even when > I know it has only 15 elements. TMTOWTDI my @arr = ()[0..14]; my @ar

Re: join hashes?

2002-09-21 Thread John W. Krahn
"Sean D. Rowe" wrote: > > ( this message was accidentally submitted under the subject RE: getpid? > Sorry ) > > I'm having a very strange problem that I'm hoping someone has come across > before. I'm using a hash to collect some field values. I want to write the > hash values to file, and I wa

join hashes?

2002-09-21 Thread Rowe, Sean D.
( this message was accidentally submitted under the subject RE: getpid? Sorry ) I'm having a very strange problem that I'm hoping someone has come across before. I'm using a hash to collect some field values. I want to write the hash values to file, and I want them delimited by the '|' characte

RE: getppid?

2002-09-21 Thread Rowe, Sean D.
I'm having a very strange problem that I'm hoping someone has come across before. I'm using a hash to collect some field values. I want to write the hash values to file, and I want them delimited by the '|' character, so I use my $LineToWrite = join('|', hash_var_1, ..., hash_var_n) .

Re: how to find memory leaks?

2002-09-21 Thread Frank Wiles
.--[ chad kellerman wrote (2002/09/20 at 15:32:11) ]-- | | I tried doing the same thing but my supervisor got mad. We aren't | allowed to use any type of system call in our scripts. If the system | call is in a perl module it's one thing but not in our code. | | system or e

Re: perl - good programming principles

2002-09-21 Thread RP C987342
> >That solve you then need to resolve what 'performance' really >means - are you counting cycles? at the code monkey end or the >cpu end??? cpu end. Being a Java/C++ programmer mostly, I find perl very interesting mainly as it lets you do a lot in short time. But I find Perl as more as a decl

Re: file upload to MySql

2002-09-21 Thread Priss
Sorry, a bit messy... use DBI; $dbh = DBI->connect("DBI:mysql:database=mydatabase;host=localhost", "user", "password", {'RaiseError' => 1}); $sth = $dbh->prepare("LOAD DATA INFILE '/home/me/file' INTO TABLE mytable FIELDS TERMINATED BY '|'"); $sth->execute(); Priss --- Priss <[EMAIL PROTECTED

Re: file upload to MySql

2002-09-21 Thread Priss
You mean something like this? use DBI; $dbh = DBI->connect("DBI:mysql:database=mydatabase;host=localhost", "user", "password", {'RaiseError' => 1}); $sth = $dbh->prepare("LOAD DATA INFILE '/home/me/file' INTO TABLE mytable FIELDS TERMINATE D BY '|'"); $sth->execute(); Priss --- Mariusz <[EMA