Help with modules and objects

2009-01-27 Thread Bill
I'm not a beginner with perl but all of my previous stuff has been simple and I've never really used modules, until now. I'm working on a program that has to receive a mime encoded email and pull info out of it. I'm using Email::Simple and Email:MIME and I can read the emails fine but I'm having

Re: Help with modules and objects

2009-01-28 Thread Bill
On Jan 26, 1:36 pm, wpflu...@yahoo.com (Bill) wrote: > I'm not a beginner with perl but all of my previous stuff has been > simple and I've never really used modules, until now.  I'm working on > a program that has to receive a mime encoded email and pull info out > of i

Merge CSV Data Files - Ideas on how to do this.

2007-04-04 Thread Bill
Hi all. I have bunch of CSV files that have the same data. This data is sent to clients. Then the data is returned back with the Active/Remove field filled. This field is only filled by 1 client. All the files are returned back. Once they are returned back I need a script that will go throu

Re: Merge CSV Data Files - Ideas on how to do this.

2007-04-04 Thread Bill
Chase, Thanks for the quick reply. I am not familiar with how to go about doing this. Do i need a module to do this? could you point me to some documentation or something that i can look at? Thanks - Bill - Original Message From: Chas Owens <[EMAIL PROTECTED]> To: Bill &

Re: Problems displaying Perl structures

2016-02-18 Thread $Bill
On 2/17/2016 03:15, Vincent Lequertier wrote: I'd get rid of the '$'s in front of '$group1' etc to avoid the '$ip =~ s/^\$//;' below. How can I have the following output? ,"10.100.29.0/24" ,10.100.27.52 ,10.100.27.53 ,10.100.27.54 ,10.100.27.55 ,10.100.27.56 ,10.100.27.57 My version: my

Large File Sort

2001-06-25 Thread Bill Pierson
Greetings all. I'm new to the list, and this is my first post, please excuse my ignorance if I ask a question that has already been addressed. I need some help finding a program or script that will merge/sort a 250+MB file as quickly as possible. For example - I have 2 files. File A, and File

Suggestions?

2001-06-27 Thread Bill Pierson
Greetings all - I realize this is a very broad question, however any suggestions would be appreciated. I'm looking to purchase good learning tools about programming in PERL. I've been programming with it for several years, but I've never truly learned the basics - just looked at other code and

Running PERL as root

2001-06-27 Thread Bill Pierson
sue before. Thanks again, --Bill

RE: Running PERL as root

2001-06-27 Thread Bill Pierson
Thanks for your replies. Actually, I'd like to be able to modify system config files, stop and restart daemons, etc. I'm not aware of the different ways to accomplish this; any tips would be appreciated. The server is in a "protected" environment. --Bill -Origin

Re: arrays

2001-06-28 Thread Bill Pierson
n for the main servername directive at the beginning of the conf file if you don't want that included in your list. This example also assumes that there is only 1 space between the server name and the actual server name. Hope this helps, --Bill - Original Message - From: "Tyler Lon

Editor

2001-07-03 Thread Bill Pierson
Hello again, all. May I get some suggestions for any Windows-based PERL development tools? Preferably, free ones? Thanks, --Bill

Re: Mysterys of the Unknown STDIN

2001-07-04 Thread Bill Pierson
Dave, Are you running this as a batch file, or as a PERL file? --Bill - Original Message - From: "SAWMaster" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 04, 2001 12:48 PM Subject: Mysterys of the Unknown STDIN I'm working on a fairly

Re: Mysteries of the STDIN

2001-07-04 Thread Bill Pierson
Dave, I tested it with the <> on both *nix and windows - both worked with no problems. I'm guessing that it may be beneficial to see the whole program..... --Bill - Original Message - From: "SAWMaster" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

Simple

2001-07-09 Thread Bill Pierson
Easy question. open(IN,"something.txt"); while($line = ) { chomp($line); if ($line eq "something") { ## HOW DO I STOP THE WHILE AND MOVE ON? } } Too little sleep + too much perl = deer in headlights. Any help will be appreciated, --Bill

Re: Simple

2001-07-09 Thread Bill Pierson
Thanks! In just a moment you'll hear a loud "pop." That will be the sound of my head coming out of my buttocks with great force. :) --Bill - Original Message - From: "Ledbetter, Jason" <[EMAIL PROTECTED]> To: "'Bill Pierson '" <[

PERL/Linux

2001-07-11 Thread Bill Pierson
se, I would appreciate it. Also, if anyone has any suggestions on doing the same thing in a "better" way, I'm all eyes. Thanks for your time, --Bill PS - Just a quick note - I've been on the list for a few weeks, and I wanted to take a moment and thank those of you who have v

Re: PERL/Linux

2001-07-11 Thread Bill Pierson
My apologies - I use: $who = `whoami`; not $who = `who`; Thanks, --Bill - Original Message - From: "Simas Cepaitis" <[EMAIL PROTECTED]> To: "Bill Pierson" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 9:33 AM Subject:

Re: Perl IDE Reviews

2001-07-18 Thread Bill Lawry
Komodo 1.1 (downloaded last week) seems to have cleared up the mathmatical division problem. - Original Message - From: "Stephen Neu" <[EMAIL PROTECTED]> To: "Perl Beginners (E-mail)" <[EMAIL PROTECTED]> Sent: Friday, June 22, 2001 11:56 AM Subject: RE: Perl IDE Reviews > Don't know if

Re: reading a text file

2001-07-24 Thread Bill Allen
Debbie - You probably want to use references. A situation very similar to yours is covered in one of the perl documentation pages: type "perldoc perlreftut" on your command line. HTH, Bill. On 2001.07.24 12:03 Debbie Christensen wrote: > I am brand new to perl; I am only on c

RE: perl interpreter

2001-08-01 Thread Bill Odom
ting on large networks, where I had Perl installed in the Windows NT NETLOGON share on my PDCs and BDCs. It even works with modules requiring DLLs, such as Win32::OLE and Win32::API. Good luck, Bill Odom -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Win32::Eventlog on ActiveState

2001-08-10 Thread Bill Odom
method new via package > "Win32::Eventlog (perhaps you forgot to load Win32::Eventlog > It's a case problem. Try Win32::EventLog (notice the uppercase 'L' there in the middle of 'EventLog') instead of Win32::Eventlog. --Bill -Original Message- From: Chris

RE: PERL installation guide for VMS?

2001-08-10 Thread Bill Odom
ersonally vouch for the accuracy of any of these links. However, Dan is the lead internals guy for Perl 6, and is one seriously smart dude, so I'm pretty confident that his information is solid. --Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent

RE: Perl script editor for NT/2000

2001-08-20 Thread Bill Odom
n customize it to make it better. You can also hook in "user tools" that act against the current word, selection, or buffer. I've written Perl scripts (of course) that do some nifty editing tricks for me that EditPlus doesn't do natively. It's priced right, too, at US$3

RE: Getting the length of an array that is a reference...

2001-08-31 Thread Bill Odom
, 'Length of array: ', scalar( @array ) , "\n", 'Index of last element: ', $#array , "\n", "\n", "For array referenced via \$ref_arr:\n", 'Length of array: ' , scalar( @$ref_arr ) , "\n", &#

better way to write a hash of month names?

2001-09-05 Thread Bill Lovett
uot;Oct"} = 9; $monthNames{"Nov"} = 10; $monthNames{"Dec"} = 11; Thanks in advance, Bill Lovett -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: better way to write a hash of month names?

2001-09-05 Thread Bill Odom
Bill Lovett [mailto:[EMAIL PROTECTED]] asked: > > Can anyone suggest a better/cooler way to populate this hash? I'm > doing ultra simple date checking, so this is all I really need, but > there must be another way to do it... > > my %monthNames; >

RE: format + sendmail

2001-09-06 Thread Bill Odom
as a set of arguments. Since that's not what they are, you're getting syntax errors. Read the perlform manpage for all the details: perldoc perlform Brett suggested using a here doc instead of formats, and it's a good idea. Just be careful to escape the "@" signs

Re: [BPQ] help!! any idea whats wrong with this??

2001-04-26 Thread Bill Lawry
Pretty cool but when used on a file it breaks hyphenated words into their components and counts them separately: 17 occurrences of 'Acct' 3 occurrences of 'Authentic' etc instead of: 3 occurrences of Acct-Authentic 3 occurrences of Acct-Delay-Time 1 occurrences of Acct-Input-Octets 1 occurrence

Re: [OT]Re: What is a "case shell"?

2001-04-26 Thread Bill Lawry
This is a simple but redundant term for the (usually) brass part that holds the bullet, primer and powder in proper configuration ... ;-) - Original Message - From: "Paul" <[EMAIL PROTECTED]> To: "Greg Meckes" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, April 24, 2001 10:47

Re: [BPQ] help!! any idea whats wrong with this??

2001-04-27 Thread Bill Lawry
Neato & thanks. I don't understand why one solution uses map & count and the other just uses count. Is map implied in the second solution? - Original Message - From: "Paul" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Bill Lawry" <

Re: append a file to another file - delete

2001-06-01 Thread Bill Stilwell
where the $. variable comes in right handy. (See perldoc perlvar for way more info on this and the various ways using it can bite you when you're least expecting it.) Cheers, Bill -- Bill Stilwell [EMAIL PROTECTED] It's all margins. Oh, just read my weblog: http://www.marginalia.org

Re: append a file to another file - delete

2001-06-01 Thread Bill Stilwell
On Fri, Jun 01, 2001 at 02:39:31PM -0700, Bill Stilwell wrote: How embarrasing. My first post and I left out a semi-colon. It's there now. > my $new_file; > open IN, $file or die "$file: $!\n"; > while () { > if ($. == 1) { > $new_file = $_; > } els

Re: looping over an array of hashes

2001-06-01 Thread Bill Stilwell
}{title}; # or do whatever to this data } Now you don't need to fuss with array size or index values at all. Hope this helps! Bill -- Bill Stilwell [EMAIL PROTECTED] It's all margins. Oh, just read my weblog: http://www.marginalia.org

Re: newcounter(was did i do that correctly)

2001-06-05 Thread Bill Stilwell
ove. Just as an additional note, I've found that putting use diagnostics; in all my programs during development is very helpful. This basically gives you verbose descriptions of the error messages you're experiencing and will often pinpoint what is wrong. It also means you don't have

Re: Certified in Perl?

2001-09-24 Thread Bill Jones
the job I have now :) Best; -Sx- William C (Bill) Jones Lead, Courseware Support Analyst (Lead e-Systems Developer) Florida Community College at Jacksonville 501 West State Street, Rm 229 Jacksonville, Florida 32202-4030 [EMAIL PROTECTED] PHONE (904

Re: Beginner needs help ...

2001-09-24 Thread Bill Jones
; # These two are not used... $quota = ''; $passwd = ''; $shell = ''; ... Do stuff ... } The things you should become familiar with - perldoc -f getpwent perldoc -f setpwent HTH; -Sx- William C (Bill) Jones Lead

Re: line with nothing

2001-09-24 Thread Bill Jones
On 9/24/01 10:53 AM, "COLLINEAU Franck FTRD/DMI/TAM" <[EMAIL PROTECTED]> wrote: > How can i repair (with a regular expression) a line with nothing inside ? s//what/; ??? -Sx- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Security Mechanisms with Perl/Apache on an Hosted Website???

2001-09-25 Thread Bill Jones
On 9/25/01 11:10 AM, "David Simcik" <[EMAIL PROTECTED]> wrote: > Hey folks, > I'm trying to cobble together some form of authentication mechanism on a > website I am building for a friend. His ISP uses Perl & Apache (it's on a > linux box). I (obviously) don't have root priviledges and have limit

Re: Security Mechanisms with Perl/Apache on an Hosted Website???

2001-09-25 Thread Bill Jones
On 9/25/01 10:26 AM, "Bill Jones" <[EMAIL PROTECTED]> wrote: > That is a big can of worms... > > There are various ways to get what you want - some better and more secure > than others; but not having root access is not a big deal... > > Something that may he

Re: Converting *nix file to dos

2001-09-26 Thread Bill Jones
On 9/26/01 4:02 PM, "Gibbs Tanton - tgibbs" <[EMAIL PROTECTED]> wrote: > rid of the hard return (^M) Of course, the easiest NON-Perl way, would be to use VI or PICO to just save your current ^M char in a file for safe keeping - like when you need it again. It's what I do; But some say I'm cra

Re: CGI script to change user's password.

2001-10-02 Thread Bill Jones
>> Hi, >> >> Recently I've received a task to write a script (CGI) to allow changing >> of user password on a web page. Basically I'm very new to CGIs and is >> facing a tremendous problem starting this task. >> >> Basically, the script is supposed to run on Apache (ran as "nobody") and >> allow

Re: Merge documents

2001-10-03 Thread Bill Jones
On 10/2/01 9:05 PM, "Brett W. McCoy" <[EMAIL PROTECTED]> wrote: > All things are possible with Perl. > Well, caveats apply. -Sx- :] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: DELETE BLANK LINE

2001-10-03 Thread Bill Jones
On 10/3/01 11:49 AM, "Pedro A Reche Gallardo" <[EMAIL PROTECTED]> wrote: > By a blank line I mean any line containing only white spaces, > return, tab characters etc. chomp; s/\w//g; print "Non-white space still in there\n" unless length; ??? -Sx- -- To unsubscribe, e-mail: [EMAIL

Re: problem in writing code(switch/case)or enum

2001-10-04 Thread Bill Jones
On 10/4/01 2:54 AM, "Rahul Garg" <[EMAIL PROTECTED]> wrote: > what i want is : > > $s_month can be 1 to 12 > if($s_month == 1){$s_month = 'JAN'};and so on > how can i do it. ? http://www.cpan.org/authors/id/S/SN/SNEEX/cal.perl_v2A HTH/-Sx- :] -- To unsubscribe, e-mail: [EMAIL PROTECT

Re: [Fwd: Perl split to HTML]

2001-10-04 Thread Bill Jones
On 10/4/01 10:55 AM, "Tom Burkhardt" <[EMAIL PROTECTED]> wrote: ... A bunch of HTML deleted... > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] my $imMe = '-Sx-'; print <<_HEREDOCS; Has this list discussed HERE DOCS ? If not recently,

Re: DB connect fail

2001-10-04 Thread bill thater
u sure the TNS connect string is being passed correctly? do you have multiple ORACLE homes and are you sure it's accessing the correct TNSNAMES.ora? is TWO_TASK set? -- Bill "Shrek" Thater ORACLE DBA Telergy,Inc. [EMAIL PROTECTED]

Anonymous scope ?

2001-10-05 Thread Bill Jones
Another Stew-pid question :] Given - { my $var = 100; print "\$var is $var\n"; } print "But here \$var is $var\n"; How can I or is there a way to get outer $var to be equal to 100 without making $var global? Also, you're not allowed to set it to 100 outside of the anonymous sub

Re: Anonymous scope ?

2001-10-05 Thread Bill Jones
On 10/5/01 12:50 PM, "Michael Fowler" <[EMAIL PROTECTED]> wrote: >> Also, you're not allowed to set it to 100 outside of the anonymous sub >> either. > > Sure you are, you just have to declare the variable outside of the anonymous > sub. > Not in this *example test* world I created for studen

I Want To Read (INPUT) A TCP (Port80) Session - Then Mail That Report

2001-10-18 Thread Bill Fink
Simple (Probably VERY Trivial To Ya'll ) I merely want to send TWO lines to a remote host (via the Telnet program, OR if there is an easier way), with the information that's returned to be collected to a file. (I'm creating reports from a web-server - and would like to send TWO LINES to THAT ser

Select all files in a dir for processing?

2001-10-18 Thread Bill Akins
trip the first row from every file EXCEPT the first, or possibly from all and insert header row into Row 1 of resulting stats.csv file. Any suggestions on that? Thanks for any insight! Bill A. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: What is "bubble sort"?

2001-11-16 Thread bill thater
thanks. mind if i use it when explaining it to my duhvelopers?;-) -- -- Bill "Shrek" Thater ORACLE DBA Telergy,Inc. [EMAIL PROTECTED] You gotta program like you don't need the

Re: variable retrieve error

2001-11-21 Thread bill thater
Marion Fennelly wrote: > Uedit www.ultraedit.com vim <http://www.vim.org> -- -- Bill "Shrek" Thater ORACLE DBA Telergy,Inc. [EMAIL PROTECTED] You gotta program like

Copy a portion of a file to a new file?

2002-01-29 Thread Bill Akins
Hi all, I would like to read in a file and print out to a new file UNTIL I reach a key word in the file. I tried something like while (<>) { if !/KEYWORD/; print $ >> dest.txt; } but that seems to copy all lines of the file except the one(s) contining KEYWORD. How can I have this exit and clo

Re: Writing to a file

2002-01-31 Thread Bill Akins
There is a great article you can read about using Spreadsheet::WriteExcel and Spreadsheet::ParseExcel modules. It can be found here: http://www-106.ibm.com/developerworks/linux/library/l-pexcel/ HTH! >>> "Lance Prais" <[EMAIL PROTECTED]> 01/31/02 12:45PM >>> I have a question regarding writing

RE: Writing to a file

2002-01-31 Thread Bill Akins
For others who may want to see how module works... Here is a snippet of code I used with the Write:Excel module... Was written and run on WinNT without Excel installed on the box. It reads in csv files into Excel file and then sets some limited formatting (freeze panes and set column widths).

Re: help for sed

2002-02-06 Thread Bill Akins
I believe Perl has all of the funtionality of sed so why not use the substr() function? I have not tested it and I'm sure others here can do this in one line, but couldn't you do something like this? if ($string =~ / >>/i) { $ll = (length($string) - 3); $string = substr($string, 1, $ll); } Wit

pie multiline replace

2008-06-05 Thread bill lam
Hello, Sorry this must be a faq but I cannot find any answer in google. Suppose I want to change 2 lines to 3 line in files as follow using perl -p -i -e command aa bb aa cc bb this doesn't work perl -p -i -e "s/aa\nbb/aa\ncc\nbb/g;" foo.txt what is the correct command (I use linux). Thanks

Re: pie multiline replace

2008-06-05 Thread bill lam
Thomas Bätzler wrote: perl -i -ple '$_ = "cc\n$_" if $p =~ m/aa/ && m/bb/; $p=$_' Thanks. looks non-trivial for me. Anyway I will copy this idiom into my cheat sheet. Thank Gunnar for suggestion too. However I prefer one-liner. regard, -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: pie multiline replace

2008-06-05 Thread bill lam
Rob Dixon wrote: If you think the one-liner is non-trivial then all the more reason that you should use a proper script. It is a bad idea to use any code unless you understand why and how it works. The script isn't trivial (to me) either. Incidentally the same can be done in sed one-liner. se

Simple regex problem has me baffled

2009-01-26 Thread Bill Harpley
le REQ/RES pair in the file with a given ID. So the RequestID should not appear more than twice in the The output list. Yet there are many instances where the RequestID appears more than twice. Any help you guys can provide would be much appreciated. The Perl version is 5.8.4. on solaris 10 Regards, Bill Harpley

RE: Simple regex problem has me baffled

2009-01-27 Thread Bill Harpley
string at ./magic.pl line 19, line 1044. 8252d Use of uninitialized value in concatenation (.) or string at ./magic.pl line 19, line 1044. 8252d Use of uninitialized value in concatenation (.) or string at ./magic.pl line 19, line 1044. What is especially puzzling is that I have seen notation s

RE: Simple regex problem has me baffled

2009-01-27 Thread Bill Harpley
it:]] but to no avail So I remain stuck at square one !! Regards, Bill -Original Message- From: John W. Krahn [mailto:jwkr...@shaw.ca] Sent: Monday, January 26, 2009 5:20 PM To: Perl Beginners Subject: Re: Simple regex problem has me baffled Bill Harpley wrote: > Hello, He

RE: Simple regex problem has me baffled

2009-01-27 Thread Bill Harpley
each record into a single long line before trying to perform regex match? Is there an easy way to do this? Regards, Bill Harpley -Original Message- From: Gunnar Hjalmarsson [mailto:nore...@gunnar.cc] Sent: Monday, January 26, 2009 5:22 PM To: beginners@perl.org Subject: Re: Simple re

RE: Simple regex problem has me baffled

2009-01-27 Thread Bill Harpley
Can you explain why this works but my orginal effort did not? Many thanks, Bill Harpley -Original Message- From: Rob Dixon [mailto:rob.di...@gmx.com] Sent: Monday, January 26, 2009 7:19 PM To: Perl Beginners Cc: Bill Harpley Subject: Re: Simple regex problem has me baffled Bill Harple

Use join on multi-dimensional array

2009-02-27 Thread Bill Harpley
dy can think of a neater trick I would be delighted to know ! Regards, BiLL

Strange problem with substr() function and right aligned fields

2009-03-03 Thread Bill Harpley
. I am using Perl 5.8.4 on Solaris. I know I could probably fix this by tweaking the SQL query but it would still be nice to know what exactly is going on here. Thanks in advance for any help you can give. Regards, Bill Harpley

Strange problem with substr() function and right aligned fields

2009-03-05 Thread Bill Harpley
f I can find the time next week, I will finish the installation next week, though success is not guaranteed { :-( x 2 } Regards, BiLL -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

RE: Nucleotide Sequencing

2004-03-12 Thread Bill Akins
> -Original Message- > From: Daniel T. Staal [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 10, 2004 8:11 PM > To: Perl Beginners > Cc: Sumit Kaur > Subject: RE: Nucleotide Sequencing > > > --As of Wednesday, March 10, 2004 6:29 PM -0600, Charles K. > Clarkson is > alleged to have

psync Panther and sym links

2004-03-19 Thread Bill Metzinger
nks like normal. When I rerun it, psync thinks those symbolic links need to be copied again. Here's a simple way to duplicate my problem on all my Panther machines Bill:/ bill$ mkdir thing1 thing2 thing3 Bill:/ bill$ ln -s thing3 thing1/thing3 Bill:/ bill$ psync thing1 thing2 Scanning D

psync, sym links, and Panther Revisited

2004-03-29 Thread Bill Metzinger
system? I have the (declared to be) Panther compatible psync. I've built one with the patch, and I've tried the binary from Bombich. Here's a simple way to duplicate my problem on all my Panther machines Bill:/ bill$ mkdir thing1 thing2 thing3 Bill:/ bill$ ln -s thing3 thing1/thi

Re: psync, sym links, and Panther Revisited

2004-03-30 Thread Bill Metzinger
On Mar 29, 2004, at 11:36 PM, WC -Sx- Jones wrote: If you *are* backing-up your system - please see this first and avoid data loss. I mean Perl is great - no doubt. Sometimes system utils are needed: http://www.oreillynet.com/cs/user/view/cs_msg/4644 Well thanks I think. Your article's main pr

find sub {}

2004-12-16 Thread Bill Adams
Hi All, I've inherited a perl application. Can anyone explain to me the code below, particularly "find sub {" TIA, Bill use File::Find; @ARGV = '/var/yp/src' unless @ARGV; my %chambers; find sub { $chambers{$_} = $File::Find::name . "/passwd" if -r $_/pass

RE: find sub {}

2004-12-16 Thread Bill Adams
Thanks Jonathan and Bob! From studying both your answers (for quite a while), I actually get what this code is doing. You guys are awesome. (I'm a newcomer.) Hope to give back some day... Bill -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Thursday, Dec

Is this allowed?

2005-04-06 Thread Bill Evans
Hi all, I am preparing for an exam (its only a short introductory Perl course so nothing brilliant is expected), but whilst preparing I have become stuck on an example question. I don't know if asking for help with this is against the rules so my apologies if that is the case. In this scenario

Re: Net::EasyTCP

2006-12-01 Thread Bill Jones
acking around with the fish protocol: http://linuxmafia.com/faq/Security/fish-protocol.html Maybe make it work even if ssh doesn't ... -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: Sorting from subroutine call

2006-12-02 Thread Bill Jones
($b->{ahash} eq 'x')) if $sorted == 0; $sorted = (lc($a->{string}) cmp lc($b->{string})) if $sort == 0; $sorted; } foreach $row (sort sortrows @$rows) { ... blah blah ... -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ -- To unsubscribe, e-mail: [EMAI

Re: Out of memory!, while extending scalar with vec()

2006-12-03 Thread Bill Jones
On 12/3/06, kyle cronan <[EMAIL PROTECTED]> wrote: (1<<$ARGV[0]) Just a thought - The argument you are passing is really the two's complement; so you are really passing 256M (not 28) to the vec statement. -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/

Re: goto return ?

2006-12-03 Thread Bill Jones
return back to where it was called from but actually continue at the point AFTER the previous routine -- a little confusing to us beginners. HTH! =) -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Re: Checking for infinite loops

2006-12-03 Thread Bill Jones
imply installs a kernel-level process to "interrupt" the target thread/process when a previously determined "event" occurs. HTH/-Sx- -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: Modules inter-relay ?

2006-12-03 Thread Bill Jones
ou can place the "special" packages in their own directory and point to it: BEGIN { unshift (@INC, "/special"); unshift (@INC, "/special/packages"); } use strict; use InitGlobal; HTH/-Sx- -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org

Re: Modules inter-relay ?

2006-12-04 Thread Bill Jones
jects. You still need to make sure the proper functions/sub-routines are "exported" so that your code is called in preference over the Perl code. However, if you wish to control what is "required" -- say branch logic, you will need to stick with te 'require' direc

Re: CGI XML

2006-12-07 Thread Bill Jones
On 12/7/06, Beginner <[EMAIL PROTECTED]> wrote: my $xml = eval {XMLin($fh, SuppressEmpty => 1, ForceArray => qr/item/) }; CGI::Lite and then use $cgi->parse_new_form_data; to get the XML into your $xml hash. -- WC (Bill) Jones -- http://youve-reached-the.endoftheinter

Re: CYGWIN Uninstall

2006-12-09 Thread Bill Jones
Delete the CygWin Folder ... geez. PS - This is OT and definitely falls under the category of learn to use your chosen platform. (God knows I myself have been told that many times and I do not post this advice lightly. Learn to use the operating environment you picked.) -- WC (Bill) Jones

Re: comparing hashes

2007-01-13 Thread Bill Jones
On 1/13/07, xavier mas <[EMAIL PROTECTED]> wrote: Yes, this is the code I use, but still doesn't work to me and I can't find the cause. Have you looked the results using Data::Dumper? Maybe the results aren't as expected? -- WC (Bill) Jones -- http://youve-reached-the

Re: Help with URI encode

2007-01-13 Thread Bill Jones
uot;; $val =~ s/%([0-9a-f][0-9a-f])/chr(hex($1))/ieg; print "... Should be $val \n"; -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x2A46CF06&fingerprint=on -- To unsubscribe, e-mail: [EMAIL PR

Re: How can I list down all builtin functions?(Re: Read a text file starting from the bottom)

2007-01-15 Thread Bill Jones
$found{$line} = ["1",$match]; } } @modules = sort count keys(%found); print <perl modules HTML $count=0; foreach $mod(@modules){ chomp $mod; $count++; if ($count == 1){ print "$mod\n"; } if ($count == 2){ print "$mod

Re: putting ";" as a replacement in the substitution.

2007-01-20 Thread Bill Jones
On 1/20/07, Michael Alipio <[EMAIL PROTECTED]> wrote: my $string = 'vd=root,status='; 'vd=root;status=' $string =~ s[\,][\;]g; -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x2A46CF06&

Re: Perl SSH

2007-01-24 Thread Bill Jones
On 1/24/07, Dukelow, Don <[EMAIL PROTECTED]> wrote: by "ssh". Can someone regimen a Perl "ssh" module that works with Net::Telnet? I see there are several out there. I am partial to this one: http://search.cpan.org/~dbrobins/Net-SSH-Perl-1.30/ -- WC (Bill) Jon

Re: Sending mail

2007-01-24 Thread Bill Jones
an someone point me to a different mailer that does have this capability? Maybe you can integrate this: http://search.cpan.org/src/GMPASSOS/Mail-SendEasy-1.2/lib/Mail/SendEasy/SMTP.pm -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ http://pgp.mit.edu:11371/pks/lookup?

Re: How to customize Perl installation

2007-01-24 Thread Bill Jones
give a LOT of output? perl -V ??? So, still, when you speak of Perl Core you are still talking about many needed modules. Additionally, when you speak of CGI.pm there are still other modules which make sense. What are you trying to accomplish? -- WC (Bill) Jones -- http://youve-reached-th

Re: Perl Soap::Lite Help

2007-01-26 Thread Bill Jones
ion on the web to do this. http://www-128.ibm.com/developerworks/webservices/library/ws-soapmap1/ ??? -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x2A46CF06&fingerprint=on -- To unsubscribe, e-mail: [EMAIL

XUL::Node Question

2007-02-07 Thread Bill Jones
work -- I am using CygWin. Any ideas would be welcome :-) -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x2A46CF06&fingerprint=on -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: Is Perlmonks.org down? Or is it me?

2007-02-14 Thread Bill Jones
On 2/14/07, Rob Coops <[EMAIL PROTECTED]> wrote: It might be a little slow as the few people that use perl seem to be able to need a lot of help on how t use it causing a huge load on the servers :-) Ouch! lol, I haven't been on there in months =) -- WC (Bill) Jones -- h

Output Order?

2007-02-28 Thread Bill Jones
erl hacker ...I think I am 1st? -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x2A46CF06&fingerprint=on -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Output Order?

2007-03-01 Thread Bill Jones
om-line? Be careful of your I/O -- things that seem to make program (logical) order sense may not produce expected results... One possible answer to your question - # A long winded approach might use # (modified from FAQ 8) - use IPC::Open3; $_ = "I am the Alpha and the Omega

Re: Output Order?

2007-03-01 Thread Bill Jones
Gr check syntax check syntax ; lol ... On 3/1/07, Bill Jones <[EMAIL PROTECTED]> wrote: # A long winded approach might use # (modified from FAQ 8) - use IPC::Open3; $_ = "I am the Alpha and the Omega (UT99 Player Xan)\n"; open(o, "cat $_"); print; pri

Re: Control Characters

2007-03-13 Thread Bill Jones
On 3/13/07, Rob Dixon <[EMAIL PROTECTED]> wrote: Unless I'm in a different parallel universe this doesn't make sense at all! What tests have you done Bill? How is ^@ (a null or zero byte) equal to "\n"? How is control-J two bytes? I thought it was pretty muc

Re: Control Characters

2007-03-13 Thread Bill Jones
On 3/13/07, Bill Jones <[EMAIL PROTECTED]> wrote: 000005000 002 000 \0 \n 002 Erm, make that: od -b xxx is - 000 000 012 002 -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ http://pgp.mit.edu:11371/pks/lookup?op=vindex&

Re: Wanted: perl script to download iso files from web page

2007-03-14 Thread Bill Jones
oad them. I would suggest you look toward WWW::Mechanize http://search.cpan.org/search?query=WWW::Mechanize&mode=all -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x2A46CF06&fingerprint=on -- To unsubscri

Re: use lib

2007-04-02 Thread Bill Jones
On 4/2/07, Nigel Peck <[EMAIL PROTECTED]> wrote: My question is, is this the best way to go about having modules in development? Yes and no. Read more about this at: http://www.perlmonks.org/index.pl?node_id=238691 -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org

  1   2   3   >