RE: Which is better?

2005-10-17 Thread Thomas Bätzler
Hi, M. Lewis [EMAIL PROTECTED] asked: Charles K. Clarkson recently replied to Sreedhar Reddy in which one of the corrections he made was: open my $fh, '', $input_file or die qq(Cannot open $input_file: $!); [...] When I have opened a file, I have always done: open (FILE, $file) ||

Re: Which is better?

2005-10-17 Thread M. Lewis
Thanks Thomas. Appreciated. Thomas Bätzler wrote: Hi, M. Lewis [EMAIL PROTECTED] asked: Charles K. Clarkson recently replied to Sreedhar Reddy in which one of the corrections he made was: open my $fh, '', $input_file or die qq(Cannot open $input_file: $!); [...] When I have opened a

Re: Which is better?

2005-10-17 Thread John W. Krahn
M. Lewis wrote: Charles K. Clarkson recently replied to Sreedhar Reddy in which one of the corrections he made was: open my $fh, '', $input_file or die qq(Cannot open $input_file: $!); It seems that Charles' habits are to prevent excess typing and to 'be lean on variables' as he phrased

RE: Which is better?

2005-10-17 Thread Thomas Bätzler
Hi, M. Lewis [EMAIL PROTECTED] asked: You've lost me here Thomas. Again, his code was: open my $fh, '', $input_file or die qq(Cannot open $input_file: $!); What am I missing here? Charles wants to output an error message like Cannot open somefilename: No such file or directory at

Alcatel CORBA 5620 OSS

2005-10-17 Thread Tielman Koekemoer \(TNE\)
Hi all, We have an Alcatel CORBA 5620 gateway from which we have extract information. Does anyone know of a module that would enable Perl to access this service? I searched the CPAN's archive but could not find anything. Apologies if this is the wrong list to ask - which would be the best

Re: Which is better?

2005-10-17 Thread John W. Krahn
John W. Krahn wrote: M. Lewis wrote: I assume that Charles did this for clarity. And for safety. perldoc -q How can I open a file Also you should read through the open tutorial and the I/O Operators section of the perlop.pod document. perldoc perlopentut perldoc perlop John -- use

RE: Which is better?

2005-10-17 Thread Charles K. Clarkson
M. Lewis mailto:[EMAIL PROTECTED] wrote: : open my $fh, '', $input_file or die qq(Cannot open $input_file: $!); [snip] : Charles opted to use qq() which cause him to have to enclose the : $input_file in . $input_file is in quotes just in case I tried to open a file that has leading or

Perldoc question...

2005-10-17 Thread Richard.Copits
I'm really new to PERL, and have what's probably a really basic question I've seen references to perldoc where apparently a person can look and find explanations of various PERL topics...but where do I go to find PERLDOC? Is this a website or ??? Thank you for help and suggestions.

Re: Perldoc question...

2005-10-17 Thread Octavian Rasnita
From: [EMAIL PROTECTED] I'm really new to PERL, and have what's probably a really basic question I've seen references to perldoc where apparently a person can look and find explanations of various PERL topics...but where do I go to find PERLDOC? Is this a website or ??? perldoc is a

RE: Perldoc question...

2005-10-17 Thread Charles K. Clarkson
Octavian Rasnita mailto:[EMAIL PROTECTED] wrote: : perldoc is a program included in the perl package. : : Just run the commands: : : perldoc perldoc : perldoc perl You can run the commands from a dos (or command prompt) window on a Windows type machine. : And you will see how you should

ssh and sudo not working together....

2005-10-17 Thread O'Brien, Bill
Greetings, I have a perl script that is using telnet that I need to switch to SSH and I'm having some issues. First is I need to use sudo to run the command on the server I'm connecting to and second I need to run more then one command, I'll then save all this output. I have this so far but it

Re: Thank you for your answer. And yesterday i was write from Nahid`s email address

2005-10-17 Thread Ulfet
Hello. I send you example. And that example i will try what i want to ask. This is a file is info.xml and it constraint below info Personal NAMEUlfet/NAME SURNAMETANRIVERDIYEV/SURNAME AGE24/AGE ADDRESSBAKU/ADDRESS /Personal Education SCHOOLXetai 191/SCHOOL

RE: Perldoc question...

2005-10-17 Thread Chris Devers
On Mon, 17 Oct 2005, Charles K. Clarkson wrote: Octavian Rasnita mailto:[EMAIL PROTECTED] wrote: : perldoc is a program included in the perl package. : : Just run the commands: : : perldoc perldoc : perldoc perl You can run the commands from a dos (or command prompt) window on

Re: Which is better?

2005-10-17 Thread Peter Scott
On Mon, 17 Oct 2005 00:54:28 -0500, M. Lewis wrote: Charles K. Clarkson recently replied to Sreedhar Reddy in which one of the corrections he made was: open my $fh, '', $input_file or die qq(Cannot open $input_file: $!); [...] When I have opened a file, I have always done: open (FILE,

Re: Thank you for your answer. And yesterday i was write from Nahid`s email address

2005-10-17 Thread Dave Gray
On 10/17/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: This is a file is info.xml and it constraint below info Personal NAMEUlfet/NAME SURNAMETANRIVERDIYEV/SURNAME AGE24/AGE ADDRESSBAKU/ADDRESS /Personal Education SCHOOLXetai

do I need further modules?

2005-10-17 Thread Richard Müller
Hello, I want to use Tk::jpeg::lite. I have a standard SuSE 9.2 (perl 5.8.5) installation and I have added every package which even smells like Perl, also Perl Tk. When compiling Tk::jpeg::lite (perl Makefile.PL) I get the following output: (I have marked the interesting things) ... Checking

Re: Alcatel CORBA 5620 OSS

2005-10-17 Thread Dave Gray
On 10/17/05, Tielman Koekemoer (TNE) [EMAIL PROTECTED] wrote: We have an Alcatel CORBA 5620 gateway from which we have extract information. Does anyone know of a module that would enable Perl to access this service? I searched the CPAN's archive but could not find anything. Apologies if this

Re: do I need further modules?

2005-10-17 Thread Dan Klose
On Mon, 2005-10-17 at 18:12 +0200, Richard Müller wrote: Hello, I want to use Tk::jpeg::lite. I have a standard SuSE 9.2 (perl 5.8.5) installation and I have added every package which even smells like Perl, also Perl Tk. When compiling Tk::jpeg::lite (perl Makefile.PL) I get the

Help unsubscribing from list

2005-10-17 Thread William . Ampeh
How do I unsubscribe from the list? Thank you __ William Ampeh (x3939) Federal Reserve Board -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: do I need further modules?

2005-10-17 Thread Richard Müller
Am Montag, 17. Oktober 2005 18:16 schrieb Dan Klose: On Mon, 2005-10-17 at 18:12 +0200, Richard Müller wrote: Hello, I want to use Tk::jpeg::lite. I have a standard SuSE 9.2 (perl 5.8.5) installation and I have added every package which even smells like Perl, also Perl Tk. When compiling

Re: Help unsubscribing from list

2005-10-17 Thread Dan Klose
NO IDEA - sorry! To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Help unsubscribing from list

2005-10-17 Thread Richard Müller
Am Montag, 17. Oktober 2005 18:20 schrieb [EMAIL PROTECTED]: How do I unsubscribe from the list? Thank you To unsubscribe, send a message to:     [EMAIL PROTECTED] xx = email address before @, yy = email address after @ -- Richard Müller - Am Spring 9 - D 58802 Balve-Eisborn www.oeko-sorpe.de

RE: I need help here

2005-10-17 Thread Charles K. Clarkson
Bowen, Bruce mailto:[EMAIL PROTECTED] wrote: : If I declare my 'lexical variables' at the beginning of a : file, and then refer to the variable without the 'my ' in front : of it, does that change it back to a package variable or does : that create a new package variable? Once a variable

Running Perl on PC

2005-10-17 Thread andrewmchorney
Hello I learned Perl on a Unix System and I would like to use perl on a PC. Do I need to install active perl? What are the steps to running perl on a PC? Thanks, Andrew -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

RE: Running Perl on PC

2005-10-17 Thread Gomez, Juan
Hi Well first of all if your PC has WinXp you need to download active perl But the most important is that there are some difference between both perl's I would recommend you google a bit to see some tutorial just to get the correct sintaxis Or to buy a book perl by example has both Win and Unix

RE: Running Perl on PC

2005-10-17 Thread Timothy Johnson
ActivePerl from ActiveState is the best way to go in my opinion. You can install it with a quick MSI and it will automatically associate the Perl (.pl, .plx, etc) extensions with Perl. It also comes with a nice package manager, PPM, that lets you quickly find precompiled modules for Windows.

RE: Running Perl on PC

2005-10-17 Thread Brian Volk
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 17, 2005 2:21 PM To: beginners@perl.org Subject: Running Perl on PC Hello I learned Perl on a Unix System and I would like to use perl on a PC. Do I need to install active perl? What are the

RE: Running Perl on PC

2005-10-17 Thread Ryan Frantz
-Original Message- From: Brian Volk [mailto:[EMAIL PROTECTED] Sent: Monday, October 17, 2005 3:51 PM To: [EMAIL PROTECTED]; beginners@perl.org Subject: RE: Running Perl on PC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October

XML::Simple + Math::Currency / Math::BigInt problem

2005-10-17 Thread Peter Rabbitson
Hello list. After I converted some parts of my program to use Math::Currency I faced the inconvenience of my XML generators not working anymore. 20 minutes of jumping up and down with the debugger yielded that the following dumbed down example: use Math::Currency; use XML::Simple; my $number

Destroying an object

2005-10-17 Thread Daniel Kasak
Greetings. I've got an OO object that I want to destroy from inside the object itself. I'm trying: sub destroy_self { my $self = shift; $self = undef; } But this doesn't work. What is the correct way of doing it? -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific

Re: Which is better?

2005-10-17 Thread M. Lewis
Thanks to Thomas, John, Charles and Peter. Lots of great input concerning the *why* question. I will certainly adapt my style (or lack thereof) to the better method. As far as the part about the CGI stuff. While that is not in my realm at this time, who knows when it might be. Best to adopt