Re: .profile not being read

2013-02-17 Thread Paul Anderson
Odds are good that the original poster needs to use .bash_profile instead. Sent from my iPhone On 2013-02-18, at 2:24 AM, Luca Ferrari wrote: > I suspect this has something to do with the PATH variable and alike. > And it could have been set up at system wide level, for instance on > /etc/prof

Re: obfuscating code

2013-02-12 Thread Paul Anderson
Simple, step by step directions: 1. Obtain large gun. 2. Load with ammunition. 3. Fire squarely into foot. 4. Reload if necessary and repeat. Sent from my iPhone On 2013-02-12, at 12:01 PM, Rajeev Prasad wrote: > freinds, > > what is the advice just for obfuscating code? platform is solari

Re: Abbreviating ordinals only in the middle of an address

2013-01-28 Thread Paul Anderson
I'm thinking {2,}\w to match two or more words after north. Sent from my iPhone On 2013-01-28, at 2:57 PM, Angela Barone wrote: > Hello, > >I'm trying to abbreviate ordinals(?) that occur only in the middle of an > address and I'm having a problem. The line below works: > > $test_data

Re: My long script

2012-09-16 Thread Paul Anderson
On 2012-09-15, at 11:25 PM, jmrhide-p...@yahoo.com wrote: > It would be WONDERFUL to get an email every time it glitched! Does anybody > have > a > > > sub written for that? Just bear in mind that you need to add logic to the while(1) loops to determine that they are running too long. If it

Re: Clarification re Perl Script out of control

2012-09-14 Thread Paul Anderson
On 2012-09-14, at 1:56 AM, jmrhide-p...@yahoo.com wrote: > I can see from the responses so far that I was unclear in the way I phrased > my > question, so please let me emphasize the following: MY SCRIPT, THOUGH COMPLEX > (500 LINES), PRODUCES EXACTLY THE OUTPUT I EXPECT EVERY TIME I RUN IT. I

Re: My script is OUT OF CONTROL!

2012-09-13 Thread Paul Anderson
Just checked on my machine, looks like it produces a floating point number between 0 and 1. Paul Anderson -- VE3HOP On 2012-09-13, at 8:07 PM, Jim Gibson wrote: > > (I am not sure exactly what rand(0) returns). -- To unsubscribe, e-mail: beginners-unsubscr...@perl.o

Re: Recommendations for emacs customizations for editing Perl

2012-09-12 Thread Paul Anderson
I haven't had any trouble. I think IIRC it may be confused a little by given/when, but not badly. Paul Anderson -- VE3HOP On 2012-09-12, at 12:20 PM, Vic Sage wrote: > > On Sep 12, 2012, at 5:59 AM, Paul Anderson wrote: > >> Install PDE from CPAN and it'

Re: Help with the can() method

2012-09-12 Thread Paul Anderson
Did you copy and paste that code? Do you know that when calling can() you are using $ojb instead of $obj? Paul Anderson -- VE3HOP On 2012-09-12, at 9:17 AM, pangj wrote: > Hi, > > Today I wrote a script for validate a dns record from the specified DNS > server, the s

Re: Recommendations for emacs customizations for editing Perl

2012-09-12 Thread Paul Anderson
run perltidy on the entire buffer. I recommend editing the templates that PDE uses with vi, it has stuff that emacs interprets. Created something of a nuisance when I tried using emacs to edit them. Paul Anderson -- VE3HOP On 2012-09-12, at 9:42 AM, Vic Sage wrote: > On Sep

Re: Recommendations for emacs customizations for editing Perl

2012-09-12 Thread Paul Anderson
Install PDE from CPAN and it'll work alright. It works fine for me on 5.16.1. Paul Anderson -- VE3HOP On 2012-09-12, at 12:08 AM, Vic Sage wrote: > I'd like to hear some recommendations from this list for customizations to > emacs for coding Perl. > > One se

Re: Perl Code

2012-08-31 Thread Paul Anderson
I smell homework:p Paul Anderson -- VE3HOP On 2012-08-29, at 12:46 PM, Ashwin Rao T wrote: > 1)Check if IP address is in the range 172.125.1.0 and 172.125.25.0 using only > return functions & regular expressions in Perl. > 2)Check if the name is valid (has atleast 3 le

Re: greater circle

2012-08-30 Thread Paul Anderson
Works great until you start using a coordinate system that places points on a sphere:) Paul Anderson -- VE3HOP On 2012-08-30, at 2:31 PM, Uri Guttman wrote: > On 08/30/2012 12:20 PM, Paul Anderson wrote: >> It looks like 2*10^-13 miles is about twice the inter atomic di

Re: greater circle

2012-08-30 Thread Paul Anderson
It looks like 2*10^-13 miles is about twice the inter atomic distance in diamond:) Paul Anderson -- VE3HOP On 2012-08-30, at 4:22 AM, Chris Stinemetz wrote: >> >> >> Because floating-point arithmetic as done by limited precision computers is >> always an ap

Re: greater circle

2012-08-29 Thread Paul Anderson
That is 99.99780441116897988% error. 16 9's is better than any measuring instrument in existence. I think it'll do:) ---- Paul Anderson -- VE3HOP On 2012-08-30, at 1:29 AM, Jim Gibson wrote: > > On Aug 29, 2012, at 5:53 PM, Chris Stinemetz wrote: > >&

Re: array match- help !

2012-08-17 Thread Paul Anderson
Isn't this basically the format of YAML? Couldn't a YAML CPAN module handle this data? On 2012-08-17, at 10:10 AM, jet speed wrote: > Hi Shomi, > > Appreciate your comments.Thanks > > I find it difficult to understand, if i convert into has. i.e keys and > corresponding values. if my keys

Re: Unable to change pos in regex match

2012-08-14 Thread Paul Anderson
Well, now I feel sufficiently stupid:) Thanks! On 2012-08-14, at 6:19 PM, Jim Gibson wrote: > >> > > Have you tried printing out the values of ($1,$2,$3,$4,$5), $cur, and pos > $numb for each iteration? I think you will find it most informative to do so. > > Hint: you should be using a whil

Unable to change pos in regex match

2012-08-14 Thread Paul Anderson
o "that " . $foo, and the warning will refer to the concatenation (.) operator, even though there is no . in your program. I've copied and pasted the code below, for those who don't want to trek over to github: #!/usr/bin/myperl -w # euler8.pl --- Euler Problem 8 #

Re: Net::NNTP inconsistent article retrieval

2012-08-11 Thread Paul Anderson
hat leafnode basically does everything you're trying to write, right? ---- Paul Anderson -- VE3HOP On 2012-08-11, at 5:21 PM, Chris Knipe wrote: > Hi Paul, > > I will be inclined to disagree - it depends on whether or not the content > was encoded to begin with (perhaps I sho

Re: Net::NNTP inconsistent article retrieval

2012-08-11 Thread Paul Anderson
Umm... Are you aware that binary attachments on usenet aren't actually *in* binary? They're encoded in ASCII using one of a number of different methods. They're just text, until decoded on the receiving end. I recommend looking into File::Slurp and CHI. CHI basically implements the entire cach

Re: Catfile function not working on windows 7 machine

2012-08-09 Thread Paul Anderson
Per the message by Mr. Adigun, using a single quote instead of double quotes tells perl not to interpolate the string. That will prevent it from eating all those backslashes. Paul Anderson -- VE3HOP On 2012-08-09, at 8:53 AM, Sandip Karale wrote: > Hi Shlomi, > > Thanks

Re: system command not working in different versions

2012-08-09 Thread Paul Anderson
Silly question: Does submit_now.pl have its execute bit set? Paul Anderson -- VE3HOP On 2012-08-09, at 3:17 AM, venki neeli wrote: > hi Midhun/Hal > > Shebang lines of Script-1 and Script-2 and perl location are same. > Where as Script one is executing and Script-2 is n