Upgrading Perl

2002-01-02 Thread Robert
How can I (actually whats the best way?) upgrade an existing Perl(5.6.0) to (5.6.1). This is on RH7.2. Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Perl / Tk Gui Toolkit?

2004-03-07 Thread Robert
John wrote: Do you know any major malling list or forum concerning the Perl/Tk ? - Original Message - From: "Benjamin Walkenhorst" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, February 25, 2004 3:04 PM Subject: Re: Perl / Tk Gui Toolkit? Hello,

Re: PERL on 9.2 and XP Prof.

2004-03-07 Thread Robert
Kenneth Janusz wrote: Platform: Dell 8400 with 9.2 and XP Prof. SP1 I have read a lot of documentation and still can't get PERL to work on my PC. Can someone step me through the process. Please keep it simple because I am new to PERL and don't have a good understanding of the jargon. My Oracl

Re: Reading text file in reverse order

2004-03-11 Thread Robert
[EMAIL PROTECTED] wrote: I have a text file with 5 or more lines as in: My name is this and that I live in Denver Colorado I live in washington I live in Denver Virginia I am trying to read this file and print each line and each word in reverse order as in: ainigriv revned ni evil I (the output s

Re: Reading text file in reverse order

2004-03-11 Thread Robert
; } } Any ideas! Thanks in advance See if the above gets you any further along and let us know. Regards, Randy. Doh! I hope it wasn't his assignment! As a newbie myself it took me about 10 minutes to do that. Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

From Windows -> Linux

2004-03-13 Thread Robert
opens up to me correct? Where is a quick tutorial on using CPAN? Using in the sense of getting modules and compiling them for use. Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

CPAN Shell

2004-12-28 Thread Robert
I did a "r" which gives me "reinstall recommendations". It does spit out a list of modules. Do I use "recompile" to batch update those? Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.o

Re: Why a program ran with mod_perl runs slower?

2004-12-28 Thread Robert
t; In the corresponding virtualhost section in httpd.conf, in order to > preload > this program at the server start, but it didn't change anything. > > Thank you. > > Teddy > mod_perl on Windows is not the greatest. It is single threaded. If you go to the mod_perl docs p

Testing question

2005-02-24 Thread Robert
I am trying to wrap my head around testing. What exactly do you test? I do mostly scripts for admin stuff and not modules. My scripts do things like run a program and then email the generated log file to me. Would you test that? What fits the criteria for "it needs a test"? Thank

Re: Testing question

2005-02-27 Thread Robert
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Chris Devers) wrote: > On Thu, 24 Feb 2005, Robert wrote: > > > I am trying to wrap my head around testing. What exactly do you test? > > I do mostly scripts for admin stuff and not modules. My scripts do > >

Unlink question

2005-02-28 Thread Robert
ess with a more verbose "open directory, grep files, close directory, unlink files" but I was trying to be more concise (and learn 'unlink' in the process). Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.

Re: Unlink question

2005-02-28 Thread Robert
On 2/28/05 7:15 PM, in article [EMAIL PROTECTED], "JupiterHost.Net" <[EMAIL PROTECTED]> wrote: > > > Robert wrote: >> I know the directory where the files I want to delete are stored. I know the >> files all look like "msqupd.log.somenumber", I h

Re: Unlink question

2005-03-01 Thread Robert
On 3/1/05 9:18 AM, in article [EMAIL PROTECTED], "JupiterHost.Net" <[EMAIL PROTECTED]> wrote: > >>> perldoc -f unlink >>> >>> Note: "unlink" will not delete directories unless you are superuser and >>> the -U flag is supplied to Perl. >> >> >> Have you actually done that? Normally, I do go by

Question on Arrays

2005-03-16 Thread Robert
$app will run with the @districts one after another. What I would like to do is add a print statement before each one runs like: NOW UPDATING ELLDEV... NOW UPDATING ELLDEV2... etc. for each district... How would I go about that? Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: Question on Arrays

2005-03-16 Thread Robert
This was one of those "your moron" moments where I posted, then tried something, and the something worked. : ) Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: use strict/warnings

2005-03-23 Thread Robert
I typically do: #!/usr/bin/perl #pragmas use strict; use warnings; #modules use Tk; And so on...I just think it organizes better. Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.

Database -> Excel

2005-03-31 Thread Robert
I see a whole passle of Excel modules on CPAN. I am querying an Oracle database and I want to save that query into an Excel file. What module would you suggest that I use? Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <h

Re: Database -> Excel

2005-04-01 Thread Robert
"Lawrence Statton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> I see a whole passle of Excel modules on CPAN. I am querying an Oracle >> database and I want to save that query into an Excel file. What module >> would you suggest that I use? &g

Re: Programming exercises

2005-04-18 Thread Robert
cises to apply > it > to. > Yes. Funny enough they are in a book called "Learning Perl". : ) Robert P.S. Not associated with the book or author in any way unless you count that I too am going through the book. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Holidays

2005-04-20 Thread Robert
I can look at? Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: examples using Template::Plugin::Page

2005-04-28 Thread Robert
on pagination with Templates > > Thanks > Ram > I have used DATA::Pageset successfully. Try that, the perldocs are good. If you need an example re-post to this and I will post one. Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: Out of memory, HTML::TableExtract

2011-01-06 Thread Robert
{ foreach my $lrow ( $lTableExtract->rows ) { chomp( @$lrow[$#$lrow] ); push( @ldata, $lrow ); } } } return \...@ldata; } Thanks Jins Thomas --0016364270585953cf049927ffd4-- -- Robert -- To unsubscribe, e-mail:

Re: Nature of this list

2011-04-19 Thread Robert
elettes is going too far!!! Dem's fighting words! :) -- Robert -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Creating letter combination generator

2011-07-08 Thread Robert
I have currently wrote a simple script to attempt to create a list of every letter combination this is a rough outline of what I want my program to do . . . A B C ... AA AB AC I used perl a bit for a high school project several years ago so I'm not that good at it =( Never the less I have extens

Regex needed

2005-06-09 Thread Robert
I have a log file where the last portion of the events look like: Printer driver: (Lexmark T520) Where the portion in parens will change but it will always look like that. Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <h

Re: Perl training material required.

2005-07-01 Thread Robert
Talk to the Stonehenge folks. : ) Robert "I am not affiliated" "Nilay Puri" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi All, Can anyone provide me the site which have good teaching material for perl. I need to give training on perl basics and I

Re: Getting Date Stamp of a file on a Win32 System

2005-07-28 Thread Robert
I found this maybe it will help: use strict; use File::stat; use POSIX qw(strftime); my $file = 'test.txt'; my $s = stat($file) || die "Can't stat($file) $!\n"; my $modtime = strftime('%Y-%m-%d', localtime($s->mtime)); print "Modification time of $file is $modt

Re: Getting Date Stamp of a file on a Win32 System

2005-07-29 Thread Robert
"Dave Adams" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >Robert, > >Thanks very much. It works great. Your code was nice and simple. > >Much appreciated. >DA I can't take credit. I just GOOGLE'd it. Glad it helped. Robert -- T

Module question

2005-08-06 Thread Robert
If I have ideas for modules I want to contribute do I "register" those with CPAN first? Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Module question

2005-08-06 Thread Robert
On 8/6/05 12:04 PM, in article [EMAIL PROTECTED], "Xavier Noria" <[EMAIL PROTECTED]> wrote: > On Aug 6, 2005, at 17:32, Robert wrote: > >> If I have ideas for modules I want to contribute do I "register" those >> with CPAN first? > > Thi

Comparing file contents (code included)

2005-09-13 Thread Robert
">>VASH2MANI.TXT"; print VASH2MANI if !$dict{$_}; close VASH2MANI; } print "Manitou comparison is done.\n"; close MANI; close MONH; close VASH; print "Comparison is completed.\n"; It works. I am just wondering in what fashion it IS working. Robert

Re: Comparing file contents (code included)

2005-09-13 Thread Robert
I did see my %dict error but my question is still the same. Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Comparing file contents (code included)

2005-09-13 Thread Robert
"Wiggins d'Anconia" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Robert wrote: > > When Perl is doing this comparison is it doing it line by line (like an > > actual DIFF) or is it putting the lines into an "array" and the c

Re: Comparing file contents (code included)

2005-09-13 Thread Robert
Is there a way (since I have the file open) that I can prepend a value (I need a number to be inserted) onto the line? Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Comparing file contents (code included)

2005-09-13 Thread Robert
Chris Charley wrote: - Original Message - From: "Robert" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: Sent: Tuesday, September 13, 2005 1:39 PM Subject: Re: Comparing file contents (code included) Is there a way (since I have the file open) that I can prepend a

Re: Comparing file contents (code included)

2005-09-13 Thread Robert
John Doe wrote: Robert am Mittwoch, 14. September 2005 00.38: Chris Charley wrote: - Original Message - From: "Robert" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: Sent: Tuesday, September 13, 2005 1:39 PM Subject: Re: Comparing file contents (code included)

Re: See the structure of what I am pulling via DBI

2005-11-07 Thread Robert
JupiterHost.Net wrote: Robert Hicks wrote: If I am pulling data out with a $sth->fetchrow_arrayref, how do I see the structure of what is coming back? I need to change the description on some use Data::Dumper; print Dumper $sth->fetchrow_arrayref(.. of the data coming back out

file::find

2005-12-03 Thread robert
Thank you in advance for yours creative inputs. Cheers, Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

A question about modules

2005-12-15 Thread Robert
h the formal process of creating a module for everything (I use Module::Starter) or is it okay to do something like the above for very small modules? Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://

Re: A question about modules

2005-12-16 Thread Robert
do a proper module of it so I can get in the "habit" of doing so. Robert <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It is okay to do something like that. However, you should not use the > package > declaration on the top. If you do that, you will have

getting a time diff from strings

2005-12-28 Thread Robert
string (that I assume I have to convert to "real" time to do the math with). Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Perl & Mysql

2003-12-07 Thread Robert
Randal L. Schwartz wrote: "Wiggins" == Wiggins D'Anconia <[EMAIL PROTECTED]> writes: Wiggins> But what are the reasons for choosing PostgreSQL over MySQL? What's a Wiggins> "real" database? Without providing reasons this is just FUD. I will Wiggins> agree that if you are looking for a package

Re: Perl & Mysql

2003-12-07 Thread Robert
Wiggins D'Anconia wrote: Vim is better than emacs, PHP is better than Perl, Red Hat is better than Suse, Gentoo is better than Debian, Gnome is better than KDE, Linux is better than Windows, Java is better than C++, MySQL is better than PgSQL I have heard these discussions before, no one ever seems

Re: [OT] Education Level

2003-12-07 Thread Robert
Rob Dixon wrote: Charles wrote: A recent job posting has left me curious. I would never take a full time job as a programmer or as anything else for that matter. I just don't make a good employee any more. Been there. Done that. The job posting demanded a college degree. I had one semester

Re: Simple db - PERL vs MS SQL Server

2004-01-04 Thread Robert
"Andy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I currently have a very simple, fairly small (25,000 records), one table > database in MS SQL Server that is accessed for read only & read / write > (dependant on user interface) via ASP on IIS (running on NT4 SP6). >

Perl/Tk on Windows (XP)

2004-01-18 Thread Robert
Is there a reference somewhere that talks about Windows XP theme problems/issues or tips and tricks? Specifically, a default menu does not have the right color, and if I make the menu background white, the area around the tearoff is still the default color. Stuff like that. MPTK will be on the w

Re: Why isn't perl used more in business and industry

2004-01-18 Thread Robert
"Dan Anderson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Most of the scripts I see end in an extension like .jsp, .asp, .dll, or > something which says that they aren't perl. Is there a reason more > businesses and online companies don't use perl? > > -Dan > There was a huge o

Re: perl editors

2004-01-31 Thread Robert
[EMAIL PROTECTED] wrote: Thank you, but I was hoping to have a editor compatible with Redhat and or HP and or AIX that gives you a color coded interface, such when there is a syntax error it color codes it in red. If you have ever seen or used a VB editor you know what I mean. Currently I use

Perl Style

2004-01-31 Thread Robert
When they say "uncuddled else" are they meaning: if () { # code } else { # code } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Use and Require

2004-01-31 Thread Robert
Wiggins D Anconia wrote: Mallik wrote: What is the difference between Use and Require. See perldoc -f use perldoc -f require Why do you ask? /R Wow such a civilized answer. Some would say... S R Q I R E This is such a nice list. Time to revisit: http://www.catb.org/~esr/faqs/smart-qu

Re: Perl Style

2004-02-01 Thread Robert
Jeff 'Japhy' Pinyan wrote: On Jan 31, Robert said: When they say "uncuddled else" are they meaning: A cuddled else is: if (...) { ... } else { ... } Anything other than THAT is an uncuddled else. Got it. Thanks! -- To unsubscribe, e-mail: [EMAIL PROTE

Re: my in the perl syntax

2004-02-06 Thread Robert
"attributes" pragma, or starting from Perl 5.8.0 also via the "Attribute::Handlers" module. See "Private Variables via my()" in perlsub for details, and fields, attributes, and Attribute::Handlers. HTH Robert -- To unsubscribe, e-

ActiveState installation question

2004-02-13 Thread Robert
If I am using the MSI do I need to uninstall the old version before installing the new one? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Why does this keep happening?

2004-02-17 Thread Robert
"Blast off!"; hint #1: Watch out for missing semi-colons! hint #2: perldoc -f my (done from a command prompt) If you are just starting out getting to know perldoc is a wonderful idea. Also "use strict" and "use warnings". 98.2753% of the time they will help your

Re: DBI and MS Access

2004-02-17 Thread Robert
Andrew Gaffney wrote: Andrew Gaffney wrote: Is there a DBD module for Microsoft Access databases? I've searched around on search.cpan.org, but I haven't come across anything. Let me elaborate. This will be from Linux, so the Windows ODBC interface to Access isn't an option. http://www.unixod

Shebang line

2004-02-20 Thread Robert
I am on Windows. Is it okay for me to put a unix style shebang line in my scripts? I would do this for the scripts that I intend to run across platforms. I think the shebang is mostly ignored on Windows. Ex: #!/usr/bin/perl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: /g

2001-06-25 Thread Robert Graham
Sally The /g does a global match. In other words it finds all occurences of the pattern. Kind regards Robert Graham [EMAIL PROTECTED] Tel: (012) 309 3075 Fax: (012) 323 4518 South African Weather Bureau * Call our Weatherline at: 082 162 Visit our web site at

Reading in a loop from a socket?

2001-07-06 Thread Robert Aspinall
can read these characters manually with $socket->recv($buffer, $length), but I'm not sure how to actually code a while loop to depend on this, something akin to "as long as there are characters, recieve them, when there aren't any, wait for more.) Any ideas? Many thanks, Rober

Re: Reading in a loop from a socket?

2001-07-06 Thread Robert Aspinall
This just got odder. Looks like I'm reading the data in just fine, but it won't print to the screen unless I preface and suffix it with a newline. Any idea what could cause that? Robert Aspinall Support Engineer V-ONE Corporation [EMAIL PROTECTED] > You might consider the fol

Re: Reading in a loop from a socket?

2001-07-06 Thread Robert Aspinall
Fantastic, that was it allright. I really appreciate the help, and I won't forget that one anytime soon. Best regards, Robert Aspinall Support Engineer V-ONE Corporation [EMAIL PROTECTED] - Original Message - From: "Peter Scott" <[EMAIL PROTECTED]> To: &quo

Another Newbie

2001-07-06 Thread Robert Omatsu
Again is learning Linux also the best thing to do in regards to Perl programs? Thank you all for your time. Robert Omatsu Control Seneca 9107 151st Ave NE Redmond, WA 98052 Direct: 425-602-4705 Toll Free: 1-800-446-2446 Fax: 425-602-4722 Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]&

Re: REGEX

2001-07-09 Thread Robert Aspinall
Hello, I believe what you want to use is the substr function, as follows: $variable = substr($line, 4, 9); That would return the characters from 4 to 9 in the variable $line. Robert Aspinall Support Engineer V-ONE Corporation [EMAIL PROTECTED] - Original Message - From: "Govind

Re: STDIN and STDOUT

2001-07-10 Thread Robert Aspinall
Hello, open (STDERR, ">&STDOUT"); I think that'll do the trick. If it doesn't.. remove the &, and it will. (Sorry, I'm not at a perl enabled machine right now :) ) Robert Aspinall Support Engineer V-ONE Corporation [EMAIL PROTECTED] - Original Messa

Re: REGEX[2]

2001-07-10 Thread Robert Aspinall
;ll prove that the loop is working and the problem may lie elsewhere. If it does, I'll be more than happy to help. Robert Aspinall Support Engineer V-ONE Corporation [EMAIL PROTECTED]

Re: Re:Net::Ping

2001-07-17 Thread Robert Graham
Hi Jorge You can define the host name as a string eg. $host = "hostname"; where hostname represents the host name on your network, and then refer to the string in the ping command: unless ($p->ping($host)) Hope this helps Robert Graham > Hi I have the following code: > &g

Re: DBI question (again)

2001-08-02 Thread Robert Graham
Have a look a the "Short Guide to DBI" available at perl.com It has an example with queries. http://www.perl.com/lpt/a/1999/10/DBI.html Regards Robert - Original Message - From: "Elie De Brauwer" <[EMAIL PROTECTED]> To: "Ray Barker" <[EMAI

Re: Checking for letters and spaces in regular expression??

2001-08-06 Thread Robert Lubej
Carlos C.Gonzalez wrote: >Hi everyone, > >Given the following code why does it print out "Valid chars in string."? >In other words why does the space between "San" and "Jose" not make the >if expression true? > >my $string = "San Jose"; > >if ($string !~ /[a-zA-Z]/) { > print "Invalid charact

Re: href in CGI

2001-08-06 Thread Robert Lubej
> > >I'm asking because the other way that I know about, isn't working in the >following code segment: > > print < > >Check Out > > End_link2 > There is (or at least i see it) a space before "End_link2". The ending string must start at the beginning of the line. -- To unsubscribe, e-mail: [

Sendmail w/perl

2001-08-14 Thread Robert Aspinall
t hello to STDOUT, and even print hello to STDERR, and I don't see the slightest peep from it. Any suggestions? Robert Aspinall Support Engineer V-ONE Corporation [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Sendmail w/perl

2001-08-14 Thread Robert Aspinall
It is getting called, if I put a sleep command in it, I can do a process list and find it in memory. I'm not using a forward file, I'm using a mail alias in /etc/aliases. Thanks, Robert Aspinall Support Engineer V-ONE Corporation [EMAIL PROTECTED] - Original Message - From

Re: Sendmail w/perl

2001-08-14 Thread Robert Aspinall
pt, with the shell /dev/null, which makes it difficult to work with. Thanks for the help though. Robert Aspinall Support Engineer V-ONE Corporation [EMAIL PROTECTED] - Original Message - From: "Gary Stainburn" <[EMAIL PROTECTED]> To: "Robert Aspinall" <[EMAIL PROT

Re: Sendmail w/perl

2001-08-14 Thread Robert Aspinall
The aliases entry is ca: "|caprocess.pl" (since smrsh calls it and ignores the path anyway) The script has nothing of any substance in it, just something like #!/usr/bin/perl open (OUTPUT, ">output.txt"); print OUTPUT "testing!"; print "testing!"; pri

forking to another window

2001-08-22 Thread Robert Sauchyn
Does anyone know of a way to fork off to another window? Ideally, the parent would be completely independent of the child. I am using ActivePerl 5xx on 2000. I tried Win32::Console, but I don't know if it will work in win32, but since fork() is _emulated_ in Win32, it doesn't seem work prope

Re: line number

2001-09-07 Thread Robert Bunn
's in the file __FILE__, and package __PACKAGE__, in case you need to know these as well. -- Robert Bunn JAPN This messsage was sent using the trial version of the 1st Class Mail Server software. The 1st Class Mail Server 3.0 ha

Re: simple question

2001-09-07 Thread Robert Citek
Hello Ryan, Replace this line: $body=~[what goes here?] with this: $body=~ s/\n/\n/g; or this: $body=~ s/\n//g; Do either of these do what you intend? Regards, - Robert - At 04:44 PM 9/7/2001 -0700, Ryan Kane wrote: [...] >from the script: >-- &

Re: Perl and files bigger then 2GB

2001-09-11 Thread Robert Citek
l.spec file from: -Uuselargefiles to -Duselargefiles If you build your perl from source, grep for this option in the makefile. HTH, - Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Getting Month Day from `date`

2001-09-11 Thread Robert Citek
nging "Sep 11" to "Sep" worked, though. Changing this: $d = `date "+%b %d"`; to this: $d = "sep"; made example 1 work. Changing this: print if (/Sep 11/i); to this: print if (/Sep/i); made example 2 work. Your scripts are fine. You were looking

Re: "system" command failure

2001-09-12 Thread Robert Citek
.bat") should work. If it is a shell script, system("source bin2ascRunScript.bat") should work. However, if it is not a shell script, then system("source bin2ascRunScript.bat") will not work. HTH, - Robert At 04:14 PM 9/12/2001 -0600, Tyler Cruickshank wrote: >Hello. I am trying t

Re: Gathering output from a program

2001-09-13 Thread Robert Citek
;2>&1 parse.pl |") || die("fork failed: \l$!\n"); Does either of these methods work for what you are doing? Note: I get slightly different results between using backticks and the open command. The backticks method did not capture all output to STDERR. A question for those

Re:File & Array

2001-09-13 Thread Robert Citek
27;t read from datafile: $!\n"; while () { chomp; push(@bigarray, $_); } Regards, - Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re:File & Array

2001-09-13 Thread Robert Citek
and (IMHO) easier to understand: > >open INDATA, "< $file" or die "Couldn't open $file for reading: $!"; >chomp ( my @bigarray = ); True. I wanted to give a good reference, the Cookbook, which explains manipulating arrays and a lot of other things.

Re: perl's system() function question.

2001-09-13 Thread Robert Citek
print "\n"; } Regardless of whether I redirect to a file or terminal, I get the same output: a hi a hello a b hi b hello b If you run this test script, what results do you get? Regards, - Robert At 08:23 AM 9/13/2001 -0600, Michael Burnside wrote: >Using the code below

Re: how to open a .iso file

2001-09-19 Thread Robert Citek
a blank CD, and CD burning software. Or you could do this: mkdir /var/ftp/pub/perl/cpan mount -o loop /var/ftp/pub/perl/cpan.iso /var/ftp/pub/perl/cpan Muy facil, no? Regards, - Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Output to a file.

2001-05-31 Thread Robert . Clayton
I've never written a line of perl before ... and I've only been lurking on the list for three hours or so. But I've been presented some code which was written for Unix and I'm trying to run on NT using ActiveState Perl. It converts a flat file from the USGS to a format we can get into our SQL dat

RE: Converting *nix file to dos

2001-09-26 Thread Robert Citek
Hello James, Here's a perl way that seems to work: perl -ne 's#\012#\015\012#g; print' filename Regards, - Robert -- At 03:02 PM 9/26/2001 -0500, Gibbs Tanton - tgibbs wrote: >Many unix systems have both a dos2unix and unix2dos command...you might try >that. >

Re: Text file line input referencing

2001-10-24 Thread Robert Hall
I found this in O'rielly's Perl Cookbook. Could Someone let me know if it illegal to copy like this. Hope this helps: # looking for line number $DESIRED_LINE_NUMBER $. = 0; do { $LINE = } until $. == $DESIRED_LINE_NUMBER || eof; If you are going to be doing this a lot and the file fits into m

RE: Regular expression help!!

2001-10-25 Thread Robert Graham
Hi You can try the following: $line = "insert_job: DUKS_rtcf_daily_log_purge job_type: c"; ($rest) = $line =~ m/(\W\w.*)/; Regards Robert -Original Message- From: Woz [mailto:[EMAIL PROTECTED]] Sent: 25 October 2001 11:17 To: [EMAIL PROTECTED] Subject: Regular expression h

RE: Regular expression help!!

2001-10-25 Thread Robert Graham
You can use the following to remove the space in front $Value =~ /s/^\s+//; And for the sake of interest $Value =~ s/\s+$//; will remove any trailing spaces from a string Regards Robert Graham -Original Message- From: Woz [mailto:[EMAIL PROTECTED]] Sent: 25 October 2001 12:04 To

Search matching problems

2001-10-29 Thread Robert Thompson
tter list to send this to, then please let me know. I could not find an appropriate one on http://lists.cpan.org/, so please clue me in. =-= Robert Thompson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Uniq'ing an array (previously Re: Search matching problems)

2001-10-30 Thread Robert Thompson
something more simple that will handle this. Thanks for your time, =-= Robert Thompson On Tue, Oct 30, 2001 at 03:52:44AM +0100, Andrea Holstein wrote: > Robert Thompson wrote: > > ... > > > > for (my $i = 0; $i < @mess_order; ++$i) { > > if ($

Outputting shell command to a browser

2001-10-31 Thread Robert Thompson
0h37m56s IN PTR www.linux.org. " test: foo result: "100.39.239.216.in-addr.arpa. 23h59m16s IN PTR www.google.com. " test: foo Here is the source code from the page that is generated, the values are blank:

Explanation of a Cookbook script and some further questions

2001-11-09 Thread Robert Thompson
is that if I put "[0-9]{0,2}\.?", "10." fails since the period is optional. I guess I could use printf to change 10. into 10.00, but I would like to produce an error incase of mistypes instead of destroying data. Thanks, =-= Robert Thompson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Explanation of a Cookbook script and some further questions

2001-11-09 Thread Robert Thompson
but it get's the job done. Comments welcome, but no news is good news. #!/usr/bin/perl my $num = reverse $ARGV[0]; if ($num =~ /\./) { unless ($num =~ /^[0-9]{2}\./) { print "Error\n"; exit(1); } } $num =~ s/([0-9]{3}) (?=\d) (?!\d*\.)/$1,/xg; print scalar reverse $num;

RE: Off-Topic (200%) - Where are you from?

2001-11-11 Thread Robert Graham
Good morning from Pretoria,in Sunny South Africa. -Original Message- From: Etienne Marcotte [mailto:[EMAIL PROTECTED]] Sent: 09 November 2001 17:08 To: [EMAIL PROTECTED] Subject: Off-Topic (200%) - Where are you from? By reading the messages everyday I can guess most of us are from Unit

RE: Off-Topic (200%) - Where are you from?

2001-11-12 Thread Robert Graham
Good morning from Pretoria, in sunny South Africa > By reading the messages everyday I can guess most of us are from United > States right? And since there are not a lot of messages in (my) morning > time, probably means most are from the west coast (different timezone). > > Am I right? > > I'm

Re: comand line arguments, but with web

2001-11-16 Thread Robert Thompson
"POST\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; if ($ENV{'REQUEST_METHOD'} eq "GET") { $form_data = $ENV{'QUERY_STRING'}; } else { $form_data = ; } print "\n";

RE: File System Sizes....

2001-11-27 Thread Robert Graham
You can try the following ($percent) = `df -k` =~ /(\d+)%/; Regards Robert Graham -Original Message- From: Kipp, James [mailto:[EMAIL PROTECTED]] Sent: 27 November 2001 15:47 To: 'James Kelty'; [EMAIL PROTECTED] Subject: RE: File System Sizes > > $percent = `df

Data::Dumper and eval question

2001-12-10 Thread Robert Thompson
(eval 3) line 1, chunk 1. >head -3 template.test.html $datadumperfile = "test.data"; # The file with the Data::Dumper database. $outfile = "test.html"; # The final output file. DATA BELOW HERE >cat test.data $Test01 = "Foo Baz&quo

Re: Data::Dumper and eval question

2001-12-11 Thread Robert Thompson
deas? Has the problem been described well? Thanks for your time, =-= Robert Thompson On Tue, Dec 11, 2001 at 10:47:42AM +, Daniel Gardner wrote: > Tuesday, December 11, 2001, 1:09:06 AM, Robert Thompson wrote: > > > I am using Data:Dumper in a script and am running into a

RE: how to print

2001-12-20 Thread Hanson, Robert
No, that can't be done... at least not from a CGI script. You can only trigger printing on the client end of things and not the server end. About the best you could do is use some JavaScript in the page to open up the print dialog, but it won't automatically print. You could also run PerlScr

  1   2   3   4   5   6   7   8   >