Strange

2015-06-11 Thread Jerry Rocteur
to the list ? Where has everybody gone to ? Jerry Rocteur -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Strange Data space wipe out with hashes

2009-09-17 Thread Jerry Rocteur
Hi, I came across this problem and thought I'd run it by the list so that perhaps someone can explain to me what is going on Given a script with the following hash definition #!/usr/bin/perl use warnings; use strict; my %sib_master_hoa = ( = [ ' type' ] ,

Re: reading files c vs perl

2009-04-15 Thread Jerry Rocteur
On 15 Apr 2009, at 13:01, John W. Krahn wrote: Dermot wrote: 2009/4/14 Chas. Owens chas.ow...@gmail.com: On Tue, Apr 14, 2009 at 11:49, Rick rich.j...@gmail.com wrote: is it true that perl will be just as fast as c for reading files ? for example cow...@amans:~$ time cat

Re: use SDBM_File - Can't use string as a HASH ref

2009-03-13 Thread Jerry Rocteur
On Thu, Mar 12, 2009 at 09:20, Jerry Rocteur mac...@rocteur.cc wrote: Hi, I'm trying to tie this kind of hash into SDBM $hash_of_baseline{$hdr_user_name} = { user_name = $hdr_user_name, passwd  = $hdr_user_passwd

use SDBM_File - Can't use string as a HASH ref

2009-03-12 Thread Jerry Rocteur
Hi, I'm trying to tie this kind of hash into SDBM $hash_of_baseline{$hdr_user_name} = { user_name = $hdr_user_name, passwd= $hdr_user_passwd, ... ... groups = [ @info_group_names ] }; I can store it but when I

use SDBM_File - Can't use string as a HASH ref

2009-03-12 Thread Jerry Rocteur
Hi, I'm trying to tie this kind of hash into SDBM $hash_of_baseline{$hdr_user_name} = { user_name = $hdr_user_name, passwd= $hdr_user_passwd, ... ... groups = [ @info_group_names ] }; I can store it but when I

Multiple line parameters in parameter file

2006-08-02 Thread Jerry Rocteur
Hi, I've just searched the web and tried the archives but I'm not in luck I'm reading a parameter file: PARAM=value PARAM1=value2 Etc. and this works great, but all of a sudden...I need multiple lines.. For example: login=logname password=password ftpfiles=/var/opt/file1, /var/opt/file2,

Multiple line parameters in parameter file

2006-08-02 Thread Jerry Rocteur
to do it.. Perhaps a module ? Any ideas ? Thanks in advance, -- _Jerry Rocteur[EMAIL PROTECTED] _|_|_ http://www.rocteur.cc (0 0) MSN [EMAIL PROTECTED] ooO--(_)--Ooo Jabber [EMAIL PROTECTED

Re: perl almost an adult? [was: s/// w/o RE]

2004-04-18 Thread Jerry Rocteur
John W. Krahn wrote: Furrfu, kids today. When I starting programming in Perl there was one man page, no books and no web sites. :-) John But Tom Christiansen was there and whenever you ran a UNIX command he would tell you to do it in Perl and if you didn't know how, he'd show you even if

Use of uninitialized value in pattern match (m//) at ./getopt.pl line 14.

2003-12-14 Thread Jerry Rocteur
Hi, I'm trying to be a good boy and use strict and warnings .. The more I do, the more I feel I'm wasting so much time and should become productive, my code looks full of 'my', I could understand the requirement inside a sub routing but in the main code it gives me the willies. My DBI Perl is

Re: Use of uninitialized value in pattern match (m//) at ./getopt.pl line 14.

2003-12-14 Thread Jerry Rocteur
On Saturday, Dec 13, 2003, at 18:12 Europe/Brussels, Jerry Rocteur wrote: Hi, I'm trying to be a good boy and use strict and warnings .. The more I do, the more I feel I'm wasting so much time and should become productive, my code looks full of 'my', I could understand the requirement inside

Use of uninitialized value in pattern match (m//) at ./getopt.pl line 14.

2003-12-13 Thread Jerry Rocteur
Hi, I'm trying to be a good boy and use strict and warnings .. The more I do, the more I feel I'm wasting so much time and should become productive, my code looks full of 'my', I could understand the requirement inside a sub routing but in the main code it gives me the willies. My DBI Perl is

Re: perl -ne 'if(/rcn/) {print $ARGV: $_ unless -d}' *

2003-12-03 Thread Jerry Rocteur
On Tuesday, Dec 2, 2003, at 21:06 Europe/Brussels, John W. Krahn wrote: Jerry Rocteur wrote: Hi, Hello, I'm trying to use perl for most shell stuff and this is some of the stuff I'm using for grep .. perl -ne 'print $ARGV: $_ if /jerry/i ' * perl -ne 'print if /jer{1,}y/i ' * perl -ne 'print

perl -ne 'if(/rcn/) {print $ARGV: $_ unless -d}' *

2003-12-02 Thread Jerry Rocteur
Hi, I'm trying to use perl for most shell stuff and this is some of the stuff I'm using for grep .. perl -ne 'print $ARGV: $_ if /jerry/i ' * perl -ne 'print if /jer{1,}y/i ' * perl -ne 'print unless /jer{1,}y/i ' * I'm enjoying this as I can do a lot more than I can with the old egrep on

CGI - DBI

2003-12-01 Thread Jerry Rocteur
Hi, I'm enjoying writing scripts using DBI, I'm doing it with Sybase and MySQL and it is a whole lot of fun. I'd like to stick some stuff on the web and I've started playing with CGI but I hate this, almost as much as I hate creating HTML docs ;-) Anyway, I decided not to re-invent the wheel

Reply to the list WAS Yahoo! Getter

2003-11-26 Thread Jerry Rocteur
, a reply goes to the poster, not the list. So who is right ? Regards, Jerry Rocteur -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

perldoc perltoc WAS Using Benchmark module

2003-11-26 Thread Jerry Rocteur
On Tuesday, Nov 25, 2003, at 20:11 Europe/Brussels, drieux wrote: On Tuesday, Nov 25, 2003, at 10:29 US/Pacific, Paul Harwood wrote: [..] Perfect, thanks! [..] There are Clear and Compelling reasons why we thump on folks about 'perldoc' is your friend. For the life of me I can never remember

Re: command-line

2003-11-02 Thread Jerry Rocteur
On Saturday, Nov 1, 2003, at 18:40 Europe/Brussels, Jeff Westman wrote: SilverFox [EMAIL PROTECTED] wrote: hey guys, i'm trying to grep some data from a log file and getting the following error. Any ideas??? [EMAIL PROTECTED] perl -e 'grep \Eliminating movie\ update.log |awk {'print \$5'}';

Re: script to test a file.

2003-10-29 Thread Jerry Rocteur
On Wednesday, Oct 29, 2003, at 19:43 Europe/Brussels, Wiggins d Anconia wrote: Rick Bragg wrote: Hi, I want to write a script that will test the contents of a file. The file being tested will pass only if it contains nothing more than an ip address on one line. Does anyone have a sample of

Psh

2003-10-04 Thread Jerry Rocteur
Hi, I started to read Perl Objects References Modules and I thought, I better upgrade my Perl modules to make sure I've got the latest in case the book uses something that I may have that is outdated, so I fired up cpan and ran r for reinstall recommendations and updated my modules.. BTW,

Re: Conceptual -- Spam stopper script

2003-09-17 Thread Jerry Rocteur
Thanks Guys... Perhaps one day the SMTP protocol will be rewritten to perform checks on the sender, perhaps one day . Thanks for all your thoughts.. Jerry On Wednesday, Sep 17, 2003, at 11:58 Europe/Brussels, zsdc wrote: Hanson, Rob wrote: You will probably run into a few issues. First

OT: Conceptual -- Spam stopper script

2003-09-16 Thread Jerry Rocteur
thoughts, Jerry Rocteur. Italy did it first... http://www.rocteur.cc/geeklog/public_html/ article.php?story=20030914164349518 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Case conversions

2003-08-15 Thread Jerry Rocteur
I've just used Elias' idea to change a file's content... Where file name is word: perl -i -p -e 's/(.)(.*)/$1\L$2/' word On Friday, Aug 15, 2003, at 23:29 Europe/Brussels, Elias Assmann wrote: On Fri, Aug 15, 2003 at 02:20:19PM -0700, Scott Taylor wrote: Any one have or know of a function to

Re: Can LWP::Simple tranfer image urls?

2003-06-22 Thread Jerry Rocteur
Finally, some usefull stuff in Perl ;-)) On Saturday, Jun 21, 2003, at 18:52 Europe/Brussels, Randal L. Schwartz wrote: The code for 2001, 2002, and 2003 is in the thread starting at: http://www.perlmonks.org/index.pl?node_id=147449 -- To unsubscribe, e-mail: [EMAIL

Re: More advanced list

2003-01-05 Thread Jerry Rocteur
advanced lists. -Original Message- From: Jerry Rocteur [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 04, 2003 3:43 PM To: [EMAIL PROTECTED] Subject: More advanced list Hi, I'm looking for a Perl list a bit more advanced that this one, you know, not beginners questions.. I love

More advanced list

2003-01-04 Thread Jerry Rocteur
Hi, I'm looking for a Perl list a bit more advanced that this one, you know, not beginners questions.. I love this list and I'm learning a lot from it but I'm wondering if there is another list with less hello world or Visual basic is better than Perl type comments, preferably NO WINDOWS but

Stepping back into the last Century in 2003 - Curses

2003-01-01 Thread Jerry Rocteur
. I would be grateful for workable solutions, note that I don't want GUI stuff, just simple stuff that will work with ssh/Keaterm in the future. Thanks very much, Jerry Rocteur. Back to the Future -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: creating a mysql table with perl

2002-12-25 Thread Jerry Rocteur
Hi Tricia, I just did: perldoc -q data base And found: Found in /System/Library/Perl/pods/perlfaq8.pod How do I use an SQL database? There are a number of excellent interfaces to SQL databases. See the DBD::* modules available from

One liner brain curler (for me ;-)

2002-12-15 Thread Jerry Rocteur
Hi, After you guys sent me all those wonderful links yesterday I've become a one liner freak ;-)) This one is driving me crazy, no matter how I do the unless, it always ignores it and overwrites an existing file. I've been struggling with it for hours and have tried all combinations but just

Re: Mail::Sendmail attachments

2002-12-15 Thread Jerry Rocteur
From man Mail::Sendmail Look at http://alma.ch/perl/Mail-Sendmail-FAQ.htm for additional info (CGI, examples of sending attachments, HTML mail etc...) Jerry On Sunday, Dec 15, 2002, at 12:31 Europe/Brussels, Adam Stuckey wrote: Hello everyone, Does anyone know of a way to send

UNIX Admin and Shell Perl resources

2002-12-13 Thread Jerry Rocteur
Hi, I like this list very much and I think it is very helpful! In my work and at home I spend most of my time at a UNIX prompt, either Linux, Mac OS X, Solaris etc. I know the Korn shell very well and I can get by with Perl but I find myself always doing stuff in ksh instead of Perl. I've

GNU grep -C in Perl

2002-12-10 Thread Jerry Rocteur
Hi, Anyone know how to write a grep -C in Perl ? You know, I want to search for a string/regexp in a file and I want to print the line before and the line after the search string. I've tried a couple of ways and it takes a really long time, I load the file in memory, seach for the string,

Re: GNU grep -C in Perl

2002-12-10 Thread Jerry Rocteur
/Brussels, Jerry Rocteur wrote: Hi, Anyone know how to write a grep -C in Perl ? You know, I want to search for a string/regexp in a file and I want to print the line before and the line after the search string. I've tried a couple of ways and it takes a really long time, I load the file in memory