problem with whitespace not splitting on split.

2006-04-26 Thread Rance Hall
om" with just one element. I'm not understanding why spliting on the whitespace doesn't split the way I want it too, none of the values have any whitespace in them except for the way the output is formatted. could someone help me figure out why its not happening like I want it to. Thanks

Re: problem with whitespace not splitting on split.

2006-04-27 Thread Rance Hall
Chad Perrin wrote: On Wed, Apr 26, 2006 at 03:22:16PM -0500, Rance Hall wrote: I'm working on a new perl script thats giving me fits. [snip] I just sent a lengthy reply to this that was supposed to go to the list, but accidentally sent it to the individual. I don't care

Re: problem with whitespace not splitting on split. -SOLVED - with followup

2006-04-27 Thread Rance Hall
nd that apparently is also wrong, I was getting 1 when I should have got >1. The doc I read said that there is a special variable called #$arrayname that has the count of array elements. But this isn't correct, so how do you return the count of array elements? -- Rance Hall System Admin

Replying to the perl list (was Re: problem with whitespace not splitting on split.)

2006-04-28 Thread Rance Hall
Chad Perrin wrote: On Thu, Apr 27, 2006 at 08:42:51AM -0500, Rance Hall wrote: some mail readers are probably capable of reading the list header and figuring it out, but I bet others don't (like mine) I use Mutt, which allows me to list-reply, but without setting up custom configuratio

splitting text that contains an encrypted value

2006-04-28 Thread Rance Hall
on schemes, so I probably need something more bullet proof than this. -- Rance Hall System Administrator Nebraska Turkey Growers 1-308-468-5711, ext. 106 [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.

I give up with the reply-to business already

2006-05-01 Thread Rance Hall
Randal L. Schwartz wrote: "Rance" == Rance Hall <[EMAIL PROTECTED]> writes: Rance> All of my other lists behave in the reverse, if you reply, it goes to Rance> the list, if you reply all, a second copy goes to the individual. Oh geez. Here we go again. Please read <

splitting on every other delimiter

2006-05-01 Thread Rance Hall
wants to split on EACH "\n" I think what I need to do is split every other "\n" and then go back and split each name\nvalue pair. But I'm open to suggestions about HOW to accomplish this. Thanks. -- Rance Hall System Administrator Nebraska Turkey Growers 1-308-

Re: splitting on every other delimiter

2006-05-01 Thread Rance Hall
Chas Owens wrote: On 5/1/06, Rance Hall <[EMAIL PROTECTED]> wrote: assume the following code: my $output = qx{systemcall}; assume that the output of the systemcall looks something like this name\n value\n snip what like to do is get the name/value pairs into a hash of some sort

Re: hash keys

2006-05-02 Thread Rance Hall
e set of hash keys is what the computer uses to find values in the hash, and in order to optimize your code and make searching the hash for specific values as fast as possible, you should WANT your key to be as short and simple as possible but still make sense when you need to debug your code.

comparing and contrasing two approaches to variable scope

2006-05-03 Thread Rance Hall
I'm sure both are technically correct, but I'm sure there are places where one approach should be preferred over the other. -- Rance Hall System Administrator Nebraska Turkey Growers 1-308-468-5711, ext. 106 [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: Stealing vs buying Was: Print

2006-05-19 Thread Rance Hall
alth Emory University Atlanta, GA 30322 -- Rance Hall System Administrator Nebraska Turkey Growers 1-308-468-5711, ext. 106 [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: ksh in a perl program

2006-06-06 Thread Rance Hall
ing language. Many scripts may be translated to Perl with little additional work (possibly adding a bunch of quotes and colons). You may try something like system "/home/xxx/yyy/abc"; It wouldn't hurt to test for the permissions on the file to make sure you can exec