not a beginner question (was Re: regex optimization)

2010-01-04 Thread Uri Guttman
> "JP" == Jeff Peng writes: JP> Hello, JP> Can the code (specially the regex) below be optimized to run faster? we seem to be getting a bunch of these questions which i would say are not beginner's questions. please post this to usenet or perlmonks which do regex optimizations all the ti

regex optimization

2010-01-04 Thread Jeff Peng
Hello, Can the code (specially the regex) below be optimized to run faster? #!/usr/bin/perl for ($i=0; $i<1000; $i+=1) { open HD,"index.html" or die $!; while() { print $1,"\n" if /href="http:\/\/(.*?)\/.*" target="_blank"/; } close HD; } The "index.html" is got from: wget http://www.265

Re: Please help to load script from secure server HTTPS in Safari and Opera

2010-01-04 Thread Steve Bertrand
Jeremiah Foster wrote: > On Jan 5, 2010, at 1:03, Steve Bertrand wrote: > >> Jeremiah Foster wrote: >>> On Jan 4, 2010, at 11:49, Simphiwe Mkhize wrote: >>> Good new year Can any one please help me to solve problem with Safari, Google Chrome and Opera. my script has to loa

Re: Please help to load script from secure server HTTPS in Safari and Opera

2010-01-04 Thread Jeremiah Foster
On Jan 5, 2010, at 1:03, Steve Bertrand wrote: > Jeremiah Foster wrote: >> On Jan 4, 2010, at 11:49, Simphiwe Mkhize wrote: >> >>> Good new year >>> >>> Can any one please help me to solve problem with Safari, Google Chrome and >>> Opera. my script has to load from secure server HTTPS for

Re: Please help to load script from secure server HTTPS in Safari and Opera

2010-01-04 Thread Steve Bertrand
Jeremiah Foster wrote: > On Jan 4, 2010, at 11:49, Simphiwe Mkhize wrote: > >> Good new year >> >> Can any one please help me to solve problem with Safari, Google Chrome and >> Opera. my script has to load from secure server HTTPS for security reason. >> It works fine from IE and Firefox. >>

Re: Please help to load script from secure server HTTPS in Safari and Opera

2010-01-04 Thread Jeremiah Foster
On Jan 4, 2010, at 11:49, Simphiwe Mkhize wrote: > Good new year > > Can any one please help me to solve problem with Safari, Google Chrome and > Opera. my script has to load from secure server HTTPS for security reason. > It works fine from IE and Firefox. > > Here are the errors I get >

Re: chroot as non-root?

2010-01-04 Thread Jeremiah Foster
On Jan 4, 2010, at 11:34, Trevor Vallender wrote: > Hi, > > I am designing a system in which scripts are installed into their own > directory, by a non-root user, under their home directory. Hi Trevor, 1. You subject is slightly off-topic for a beginner's perl list. Maybe consider a POSIXy ad

Re: What interative perl shell I should use to debug the perl code?

2010-01-04 Thread Jenda Krynicky
From: Peng Yu > It seems that there are more than one choices of perl interactive > shells. I'm wondering which one is best or most popular. > > For example, I have a perl file that first load a huge data file then > do some processing on the data file. The loading time is much longer > than the

Re: perl expect script to login to multiple machines

2010-01-04 Thread C.DeRykus
On Jan 3, 1:56 pm, perl.ha...@gmail.com (Perl_haxor 123) wrote: > Hi All, > >            I'm new to perl and facing a problem I'm using a perl > expect script to login to multiple machines (having same username and > password) and execute the date command, initially i tested on one machine,

Re: perl multithreading

2010-01-04 Thread Uri Guttman
> "ms" == mud saisem writes: ms> I am trying to learn and understand multithreading but I am not sure ms> why one would choose to use multithreading ? ms> Could somebody please explain and perhaps provide a example. first off, IMO this isn't a good topic for the perl beginners list as

Re: Script to create huge sample files

2010-01-04 Thread Dr.Ruud
Parag Kalra wrote: I am curious to know more on UTF First read perlunitut. -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

perl multithreading

2010-01-04 Thread mud_saisem
Hi There, I am trying to learn and understand multithreading but I am not sure why one would choose to use multithreading ? Could somebody please explain and perhaps provide a example. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@per

Re: Script to create huge sample files

2010-01-04 Thread Parag Kalra
Thanks Jeff. Cheers, Parag On Mon, Jan 4, 2010 at 7:41 AM, Jeff Peng wrote: > Parag Kalra: > > Hmmm - > http://search.cpan.org/~dankogai/Encode-2.39/lib/Encode/Guess.pm >> >> It says right at the bottom that below method w

RE: Test file is not readable, while running "make test"

2010-01-04 Thread Hack, Gabi (ext)
> > dharmashankar subramanian wrote: > > > Hi Shawn, > > > It appears to me that the directory has both read, as > well as execute > > > permissions (for me). > > > > > See below, the output of 'ls -al' inside the directory. > > > > > $ ls -al > > > total 28 > > > drwxr-s--x  3 shankar shankar 204

Re: AW: chroot as non-root?

2010-01-04 Thread Trevor Vallender
On Mon, 2010-01-04 at 12:56 +0100, Thomas Bätzler wrote: > Trevor Vallender asked: > > I am designing a system in which scripts are installed into their own > > directory, by a non-root user, under their home directory. > > > > It is very important they not be allowed to write anywhere outside th

AW: chroot as non-root?

2010-01-04 Thread Thomas Bätzler
Trevor Vallender asked: > I am designing a system in which scripts are installed into their own > directory, by a non-root user, under their home directory. > > It is very important they not be allowed to write anywhere outside the > directory they are installed in. There are two ways I thought o

Please help to load script from secure server HTTPS in Safari and Opera

2010-01-04 Thread Simphiwe Mkhize
Good new year Can any one please help me to solve problem with Safari, Google Chrome and Opera. my script has to load from secure server HTTPS for security reason. It works fine from IE and Firefox. Here are the errors I get 1. Opera Error! Could not connect to remote server You tried t

chroot as non-root?

2010-01-04 Thread Trevor Vallender
Hi, I am designing a system in which scripts are installed into their own directory, by a non-root user, under their home directory. It is very important they not be allowed to write anywhere outside the directory they are installed in. There are two ways I thought of doing this; create a user fo