Re: IS there any way to get rthe content of the file

2005-02-10 Thread Xiaofang Zhou
Hi, Anish, open INPUT, "a.txt" or die; # binmode INPUT; # if it's a binary file. $data = join "", ; close INPUT; 在 2005-02-11 11:40:00 您写道: >Hi > >I wanted to read the content of file in one varaible. Now I am doing > >open INPUT, "a.txt" | die "Cannot open the file"; > >while () >{ > $temp=$

Re: IS there any way to get rthe content of the file

2005-02-10 Thread John W. Krahn
Anish Kumar K. wrote: Hi Hello, I wanted to read the content of file in one varaible. Now I am doing open INPUT, "a.txt" | die "Cannot open the file"; ^ perldoc perlopentut while () { $temp=$temp.$_; } print "the entire file is $temp"; close(INPUT); I wanted to get the en

Re: IS there any way to get rthe content of the file

2005-02-10 Thread Jeff 'japhy' Pinyan
On Feb 11, Anish Kumar K. said: open INPUT, "a.txt" | die "Cannot open the file"; That should be: open INPUT "a.txt" or die "cannot open a.txt: $!"; while () { $temp=$temp.$_; } You could write that as $temp .= $_; print "the entire file is $temp"; close(INPUT); -- Jeff "japhy" Pinyan

RE: IS there any way to get rthe content of the file

2005-02-10 Thread TapasranjanMohapatra
-Original Message- From: Anish Kumar K. [mailto:[EMAIL PROTECTED] Sent: Fri 2/11/2005 11:40 AM To: beginners perl Cc: Subject:IS there any way to get rthe content of the file Hi I wanted to read the content of file in one varaible. Now I am doing open INPUT, "a.tx

IS there any way to get rthe content of the file

2005-02-10 Thread Anish Kumar K.
Hi I wanted to read the content of file in one varaible. Now I am doing open INPUT, "a.txt" | die "Cannot open the file"; while () { $temp=$temp.$_; } print "the entire file is $temp"; close(INPUT); I wanted to get the entire varaible I tried with other way but failed Anish

run Perl /shell script directly from web browser?

2005-02-10 Thread loan tran
Is it possible to exec a unix Perl or Shell script directly from a web browser? Note that a web server locates on PC Window NT and the Perl or shell script locate on AIX Unix server. Does anyone know of a way to accomplish this? Thanks. __ Do

Regex not working as expected when doing multiple checks and updates

2005-02-10 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Here is a watered down version, but unclear what I am missing. You should be able to cut and past. It is self contained and I am running on XP Pro, using AS 5.8.4. What am I trying to do? Well I have to implement a new setup. So I pull the reports I use for the emails from one s

RE: Loops & regexps

2005-02-10 Thread Larsen, Errin M HMMA/IT
> -Original Message- > From: Larsen, Errin M HMMA/IT > Sent: Thursday, February 10, 2005 2:37 PM > To: beginners@perl.org > Subject: Loops & regexps > > > Hi everyone, > > I've got a command (if you're familiar with EMC and > PowerPath, you'll recognize the output) that outputs a long

RE: Loops & regexps

2005-02-10 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Larsen, Errin M HMMA/IT wrote: > Hi everyone, > > I've got a command (if you're familiar with EMC and PowerPath, you'll > recognize the output) that outputs a long list of information like > this: > > # powermt display dev=all > Pseudo name=emcpower0a > Symmetrix ID=000187720658 > Logica

Loops & regexps

2005-02-10 Thread Larsen, Errin M HMMA/IT
Hi everyone, I've got a command (if you're familiar with EMC and PowerPath, you'll recognize the output) that outputs a long list of information like this: # powermt display dev=all Pseudo name=emcpower0a Symmetrix ID=000187720658 Logical device ID=00AD state=alive; policy=SymmOpt; prio

Re: assistance requested with installation

2005-02-10 Thread Wiggins d'Anconia
Your question might fetch more results on the P5P list. Generally it should not be used for beginner questions, or even beginner installation questions, but HPUX is less often seen, and it is a relatively new Perl, so I don't think it would be considered OT there. http://danconia.org Adams, Mat

concurrent access to a file

2005-02-10 Thread Mariano Cunietti
Hi, I'm writing a simple script which gets input from a fifo (which is fed by syslog as well) and prints out the names and accounts uf "User unknow in recipient table". Here is the code: === #!/usr/bin/perl use strict; use warnings; # DUMP user table open (USERS, "config/passwd"

RE: Storing large records in a database

2005-02-10 Thread Gomez, Juan
I was going to say the same thing is the amount is BIG better MySQL But if only going to be something lite well use the SQLite but watch it is not a real database engine is a library But I guess Chris told you that :) I prefer MySQL even if a simple management of a database but is just me

Re: Storing large records in a database

2005-02-10 Thread Chris Devers
On Thu, 10 Feb 2005, Jay wrote: > If you're storing large amounts of complex dtat, though, it may be > time to think about some kind SQL-based RDBM. If you don't need a > full-fledged server like MySQL, take a look at DBD::SQLite. SQLite seems to be what all the cool kids are using these days.

uninstalling module

2005-02-10 Thread Martin Mrazek
Hello, I have installed PDL module for perl, but something went wrong and I need to reinstall it. Shall I remove the module first and then install again? How to remove it? Martin -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Storing large records in a database

2005-02-10 Thread Jay
On Wed, 9 Feb 2005 13:59:56 -0800, Phil Schaechter <[EMAIL PROTECTED]> wrote: > I'm using MLDBM to store multi-level hashes in a database, and I need to find > a solution (other than compression) to store more than the 1024 byte limit. > Is there another database package I should be looking at? >

assistance requested with installation

2005-02-10 Thread Adams, Matthew \(GE Consumer & Industrial\)
I'm an Oracle DBA attempting to install Perl 5.8.6 so I can start experimenting with DBD/DBI:Oracle for use as a application development environment. My environment is HP-UX 11.11. I'm having some problems and I was hoping to get some help. For brevity, I'll avoid posting the entire output fro

Re: RE: entering text w/o echoing

2005-02-10 Thread Joe Mecklin
true, Inkey may be a bit easier, but the code below does not echo at all, giving absolutely no indication of the password's length. for me this is an additional benefit i find worth the minor extra effort. thanks to both of you for your suggestions, they are greatly appreciated. use Term::Read

RE: Changing the path in @INC

2005-02-10 Thread Manav Mathur
shift accepts only one argument, the array. and shifts of an element from the beginning of the array. -Original Message- From: bright true [mailto:[EMAIL PROTECTED] Sent: Thursday, February 10, 2005 6:43 PM To: Boysenberry Payne Cc: beginners@perl.org Subject: Re: Changing the path in @IN

Re: RE: entering text w/o echoing

2005-02-10 Thread Xiaofang Zhou
Any Term::InKey is more easy to use. use Term::InKey; $password = ReadPassword; # echo with '' 在 2005-02-09 11:29:00 您写道: >Joe Mecklin wrote: >> i need the ability to accept keyboard input without echoing it back to >> the screen (passwords, etc.) and have not yet found anything that w

Re: Changing the path in @INC

2005-02-10 Thread bright true
Hi , i don't know if this would work ... but try it anyway BEGIN{ shift(@INC,"/sw/");} bye On Thu, 10 Feb 2005 06:29:26 -0600, Boysenberry Payne <[EMAIL PROTECTED]> wrote: > I know how to add to the perl path, but how do you take away. I have > the fink /sw/ path included in the @INC array

Changing the path in @INC

2005-02-10 Thread Boysenberry Payne
I know how to add to the perl path, but how do you take away. I have the fink /sw/ path included in the @INC array, and I want to be able to temporarily remove them, or at least put them at the end. Is there a way to set it up so that it's semi permanent? Thanks ahead of time, Boysenberry -- To

Storing large records in a database

2005-02-10 Thread Phil Schaechter
I'm using MLDBM to store multi-level hashes in a database, and I need to find a solution (other than compression) to store more than the 1024 byte limit. Is there another database package I should be looking at? Is there some compile-time options I can use to up that limit? -Phil -- To unsubs