Re: Recursive routine

2008-06-17 Thread Dermot
2008/6/16 Rob Dixon <[EMAIL PROTECTED]>: > Dermot wrote: >> Hi All, ...snip > I think you are better off using a simple global regex match Dermot. > >my @f =$str =~ /[A-Z][a-z]+/g; > > That finds all instances of a capital letter followed by one or more lower > case > letters. Well both varie

Re: Binary to Text/ASCii conversion

2008-06-17 Thread Jenda Krynicky
From: "Anirban Adhikary" <[EMAIL PROTECTED]> > Hi, > > Actually we are working in the telecom industry, so our work resolves > parsing the raw CDRs generated from the telecom switch(the format is ASN.1) > . Till now it is being done through JAVA, but some requirement creeps in > where we need to

Capture URL parameter

2008-06-17 Thread luke devon
Dear Friends I am going to capture some values/parameters which are comes trough URL. like Client_IP , domain name .etc. But i have no idea how it would be done by perl. Here i am going to use bcoz this program based on squid-cache server. Can somebody help me on this please. Many Thanks

doubt in my web spider

2008-06-17 Thread Manasi Bopardikar
http://sac.edu/Schedule/search/results.asp?semester=Fall2008 &department=Accounting&AddTitle=-+Browse&RtnURL=%2Fschedule%2Fbro

Re: Binary to Text/ASCii conversion

2008-06-17 Thread Dr.Ruud
"Anirban Adhikary" schreef: > our work resolves > parsing the raw CDRs generated from the telecom switch(the format is > ASN.1) . Till now it is being done through JAVA, but some requirement > creeps in where we need to parse those CDRs through perl and convert > those files into some text/ascii f

Re: Capture URL parameter

2008-06-17 Thread Octavian Rasnita
From: "luke devon" <[EMAIL PROTECTED]> Dear Friends I am going to capture some values/parameters which are comes trough URL. like Client_IP , domain name .etc. But i have no idea how it would be done by perl. Here i am going to use bcoz this program based on squid-cache server. Those envir

Re: Capture URL parameter

2008-06-17 Thread luke devon
Hi Octavian, Thank you so much . I used it and got a huge out put . anyway when I explore my requirement , its like this , in following example http://somethig.com/?name=&number=22 How would i filter that "name" and "number" parameter form the request url ?? Could you please help me ? T

Removing special character from first line in CSV file

2008-06-17 Thread suyog_linux
Hi All, I am new to perl coding and I am working with a CSV file where I have to remove all the double quotes (") from the first line of the file. I need a code that I can embed in a .pl file. Could somebody help me with this ? Thanks, Suyog -- To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Perl Script

2008-06-17 Thread dakin999
I am looking for any generic perl code that is doing some thing like following. Any code help will be really helpful. 1. Reads from a database(oracle) following columns: Customer_No, Fname, Lname, Password. 2. Encrypts the password in SHA1_Base64 format. 3. Use the perl-ldap add object to crea

Re: Recursive routine

2008-06-17 Thread Nayab
On Jun 16, 9:33 pm, [EMAIL PROTECTED] (Rob Dixon) wrote: > Dermot wrote: > > Hi All, > > > I have data in a tab delimited format like this (tabs might be lost in > > the formatting of the email). > > > A456/959        ScHe > > M920/1123      He > > D123/999        ChFl > > D123/949        AnFl > >

Re: Removing special character from first line in CSV file

2008-06-17 Thread Dermot
2008/6/17 suyog_linux <[EMAIL PROTECTED]>: > Hi All, Hi, > I am new to perl coding and I am working with a CSV file where I have > to remove all the double quotes (") from the first line of the file. Could you send us what you've tried so far. It works better if we can see what you've tried and p

Re: Perl Script

2008-06-17 Thread Jeff Peng
On Tue, Jun 17, 2008 at 10:46 AM, dakin999 <[EMAIL PROTECTED]> wrote: > I am looking for any generic perl code that is doing some thing like > following. Any code help will be really helpful. I don't think there is such a "general" script. Maybe you can write one. -- Jeff Peng - [EMAIL PROTECTE

Re: Perl Script

2008-06-17 Thread Gunnar Hjalmarsson
dakin999 wrote: I am looking for any generic perl code that is doing some thing like following. Any code help will be really helpful. 1. Reads from a database(oracle) following columns: Customer_No, Fname, Lname, Password. 2. Encrypts the password in SHA1_Base64 format. 3. Use the perl-ldap ad

Difference between system() and exec() and ``

2008-06-17 Thread swaroop
As we know there are 3 ways a system shell command to be executed. 1.> $var = system("command"); 2.> $var = exec("command"); 3.> $var = `command`; What is difference between these three? I found that the first two options are printing the output of the command. And the third one simply stores t

Fwd: How attach files and send mails on perl????

2008-06-17 Thread Armin Garcia
-- Forwarded message -- From: Armin Garcia <[EMAIL PROTECTED]> Date: Tue, Jun 17, 2008 at 12:44 PM Subject: Re: How attach files and send mails on perl To: [EMAIL PROTECTED] hi well i have some problems again, thats my new code: #!/usr/bin/perl -w #Modulos use MIME::Lite

Re: How attach files and send mails on perl????

2008-06-17 Thread Armin Garcia
hi well i have some problems again, thats my new code: #!/usr/bin/perl -w #Modulos use MIME::Lite; use warnings; use strict; ## Configuration ## ###

Re: Difference between system() and exec() and ``

2008-06-17 Thread Jeff Peng
On Tue, Jun 17, 2008 at 1:47 PM, swaroop <[EMAIL PROTECTED]> wrote: > As we know there are 3 ways a system shell command to be executed. > > 1.> $var = system("command"); > 2.> $var = exec("command"); > 3.> $var = `command`; > > What is difference between these three? I found that the first two >

Re: Fwd: How attach files and send mails on perl????

2008-06-17 Thread Gunnar Hjalmarsson
Armin Garcia wrote: sub Main{ my $aux; @tmp=`ls $attach_path`; foreach (@tmp){ if ($_ =~ /backup*/){ $aux=$_; } } Try inserting chomp $aux; here. $file="$attach_path/$aux"; Well the p

Re: Difference between system() and exec() and ``

2008-06-17 Thread Chas. Owens
On Tue, Jun 17, 2008 at 01:47, swaroop <[EMAIL PROTECTED]> wrote: > As we know there are 3 ways a system shell command to be executed. > > 1.> $var = system("command"); > 2.> $var = exec("command"); > 3.> $var = `command`; > > What is difference between these three? I found that the first two > op

Re: Difference between system() and exec() and ``

2008-06-17 Thread Gunnar Hjalmarsson
swaroop wrote: As we know there are 3 ways a system shell command to be executed. 1.> $var = system("command"); 2.> $var = exec("command"); 3.> $var = `command`; What is difference between these three? You should not have asked that question here; you should have looked up the answer in the

Re: Difference between system() and exec() and ``

2008-06-17 Thread Rob Dixon
Gunnar Hjalmarsson wrote: > swaroop wrote: >> As we know there are 3 ways a system shell command to be executed. >> >> 1.> $var = system("command"); >> 2.> $var = exec("command"); >> 3.> $var = `command`; >> >> What is difference between these three? > > You should not have asked that question her

Re: Difference between system() and exec() and ``

2008-06-17 Thread Gunnar Hjalmarsson
Rob Dixon wrote: Gunnar Hjalmarsson wrote: swaroop wrote: As we know there are 3 ways a system shell command to be executed. 1.> $var = system("command"); 2.> $var = exec("command"); 3.> $var = `command`; What is difference between these three? You should not have asked that question here; yo

making do work with strict

2008-06-17 Thread beast
I just want to load variable from config file: config.pl: $basedir = '/home/user/'; myprog.pl: #use strict; do 'config.pl' or die "can not open config\n"; # do some stuff here the problem is, i have to disable strict in myprog.pl. any other way to do it? Thanks. --budhi -- To unsubscrib

Re: making do work with strict

2008-06-17 Thread Gunnar Hjalmarsson
beast wrote: I just want to load variable from config file: config.pl: $basedir = '/home/user/'; myprog.pl: #use strict; do 'config.pl' or die "can not open config\n"; # do some stuff here the problem is, i have to disable strict in myprog.pl. any other way to do it? Declare the variable