Re: Help me with a regex problem

2019-10-26 Thread Dermot
You might consider using Regexp::Common::net. It provides a convenient set of functions for matching IP v4, v6 and mac addresses. https://metacpan.org/pod/Regexp::Common::net On Fri, 25 Oct 2019 at 19:43, John W. Krahn wrote: > On 2019-10-25 3:23 a.m., Maggie Q Roth wrote: > > Hello > >

Re: Help me with a regex problem

2019-10-25 Thread John W. Krahn
On 2019-10-25 3:23 a.m., Maggie Q Roth wrote: Hello Hello. There are two primary types of lines in the log: What are those two types? How do you define them? 60.191.38.xx/ 42.120.161.xx /archives/1005 From my point of view those two lines have two fields, the first

Re: Help me with a regex problem

2019-10-25 Thread Andy Bach
/(?[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\s+(?\/.*)/ To avoid the "leaning toothpick" problem, Perl lets use different match delimiters, so the above is the same as: m#(?[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\s+(?/.*)# I assume you want to capture the IP and the path, right? if

Re: Help me with a regex problem

2019-10-25 Thread Benjamin S Pendygraft II
That is a backslash followed by a forward slash. The backslash tells the regex parser to treat the next character as a literal character. Useful for matching periods, question marks, brackets, etc. A period matches any character once and an asterisk matches the previous character any number of

Re: Help me with a regex problem

2019-10-25 Thread X Dungeness
my $n = '[0-9]{1,3}'; if ( =~ ( m[ (?:$n\.){3} $n \s+ \S+ ]x ) { # match } On Fri, Oct 25, 2019 at 3:37 AM Maggie Q Roth wrote: > what's V.*? > > Maggie > > On Fri, Oct 25, 2019 at 6:28 PM Илья Рассадин wrote: > >> For example, this regex >> >>

Re: Help me with a regex problem

2019-10-25 Thread Maggie Q Roth
what's V.*? Maggie On Fri, Oct 25, 2019 at 6:28 PM Илья Рассадин wrote: > For example, this regex > > /(?[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\s+(?\/.*)/ > > On 25.10.2019 13:23, Maggie Q Roth wrote: > > Hello > > > > There are two primary types of lines in the log: > > > >

Re: Help me with a regex problem

2019-10-25 Thread Илья Рассадин
For example, this regex /(?[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\s+(?\/.*)/ On 25.10.2019 13:23, Maggie Q Roth wrote: Hello There are two primary types of lines in the log: 60.191.38.xx        / 42.120.161.xx       /archives/1005 I know how to write regex to match each line, but

Re: help me for this error

2011-05-18 Thread Balachandran Sivakumar
On Wed, May 18, 2011 at 2:55 PM, ind...@students.itb.ac.id wrote: ARGV error firstradar velx vely if(@ARGV != 3){    print ARGV error \n;    print firstradar velx vely \n;    exit(1); } From what I see, this script expects command line arguments and expects 3 arguments. So, you should

Re: help me for this error

2011-05-18 Thread Saran
Try something like if(scalar(@ARGV) != 3) { The above statement will execute if there is less than or greater than three command line arguments.. ~ Saran On May 18, 2:37 pm, benignb...@gmail.com (Balachandran Sivakumar) wrote: On Wed, May 18, 2011 at 2:55 PM,  ind...@students.itb.ac.id wrote:

Re: help me for this error

2011-05-18 Thread Uri Guttman
S == Saran mail2sarava...@gmail.com writes: S Try something like S if(scalar(@ARGV) != 3) { there is no need for scalar there. the != op provides a scalar context so @ARGV will return its count. uri -- Uri Guttman -- u...@stemsystems.com http://www.sysarch.com -- -

Re: help me for this error

2011-05-18 Thread Shlomi Fish
On Wednesday 18 May 2011 12:25:52 ind...@students.itb.ac.id wrote: Dear all, I try to run this script to process my radar data, the script build by someone, I have asked him, but his advice can not help. This error message : ARGV error firstradar velx vely This is the Perl code: #!

Re: help me with a parsing script please

2011-05-13 Thread Rob Dixon
On 12/05/2011 10:23, Nathalie Conte wrote: HI, I have this file format chr start end strand x 12 24 1 x 24 48 1 1 100 124 -1 1 124 148 -1 Basically I would like to create a new file by grouping the start of the first line (12) with the end of the second line (48) and so on the output should

Re: help me with a parsing script please

2011-05-12 Thread Rob Coops
You are almost there :-) my ($helper1, $helper2); my $counter = 1; foreach my $line(@list){ chomp $line; my @coordinates = split(/' '/, $region); my $chromosome = $coordinates[0]; my $start = $coordinates[1]; my $end = $coordinates[2]; my $strand =

Re: help me with a parsing script please

2011-05-12 Thread John W. Krahn
Nathalie Conte wrote: HI, Hello, I have this file format chr start end strand x 12 24 1 x 24 48 1 1 100 124 -1 1 124 148 -1 Basically I would like to create a new file by grouping the start of the first line (12) with the end of the second line (48) and so on the output should look like

Re: help me with a parsing script please

2011-05-12 Thread Brian Fraser
On Thu, May 12, 2011 at 6:23 AM, Nathalie Conte n...@sanger.ac.uk wrote: I have this script to split and iterate over each line, but I don't know how to group 2 lines together, and take the start of the firt line and the end on the second line? could you please advise? thanks You have a

Re: help me with a parsing script please

2011-05-12 Thread Mike McClain
On Thu, May 12, 2011 at 10:23:29AM +0100, Nathalie Conte wrote: snip I have this file format chrstartendstrand x 12241 snip I have this script to split and iterate over each line, but I don't know how to group 2 lines together, and take the start of the firt line

Re: help me with a parsing script please

2011-05-12 Thread Peter Lanting
On Thu, May 12, 2011 at 11:23 AM, Nathalie Conte n...@sanger.ac.uk wrote: HI, I have this file format chrstartendstrand x 12241 x24481 1100124-1 1124148-1 Basically I would like to create a new file by grouping the start of the first

Re: Help me learn Closures.

2010-11-13 Thread Randal L. Schwartz
Matthew == Matthew Young mab...@gmail.com writes: Matthew What are closures? How are they used? When should they be used? Where Matthew can I learn more about them? If you can borrow (or buy :) a copy of Intermediate Perl, I have an entire section on closures in there. -- Randal L. Schwartz -

Re: Help me learn Closures.

2010-11-12 Thread Shlomi Fish
Hi Matthew, On Friday 12 November 2010 19:26:34 Matthew Young wrote: I often read about closures being one of those 'end all beat all' programming techniques reserved for the most sophisticated and advanced gurus out there. Naturally, I want to learn how to use them, and use them effectively

Re: Help me learn Closures.

2010-11-12 Thread John W. Krahn
Matthew Young wrote: I often read about closures being one of those 'end all beat all' programming techniques reserved for the most sophisticated and advanced gurus out there. Naturally, I want to learn how to use them, and use them effectively - I know perl supports them! I know its a sort of

Re: Help me understand

2009-12-05 Thread Someone Something
SUPER is a class that controls the superclass of the current class. Look here: http://search.cpan.org/~chromatic/SUPER-1.17/lib/SUPER.pm So, what that means is, run the encrypt method/subroutine/function of the superclass of the current class. Something I would highly recommend is dive into

Re: Help me understand

2009-12-05 Thread 120
On Sat, 2009-12-05 at 08:45 -0500, Someone Something wrote: SUPER is a class that controls the superclass of the current class. Look here: http://search.cpan.org/~chromatic/SUPER-1.17/lib/SUPER.pm So, what that means is, run the encrypt method/subroutine/function of the superclass of the

Re: Help me understand

2009-12-05 Thread Shawn H Corey
120 wrote: On Sat, 2009-12-05 at 08:45 -0500, Someone Something wrote: SUPER is a class that controls the superclass of the current class. Look here: http://search.cpan.org/~chromatic/SUPER-1.17/lib/SUPER.pm So, what that means is, run the encrypt method/subroutine/function of the superclass

Re: Help me understand

2009-12-05 Thread Jenda Krynicky
From: 120 zen158...@zen.co.uk I've looked at this: sub encrypt { my $self = shift; my $xx = $$self; #.. cut stuff I do understand return $self-SUPER::encrypt(); } Could someone help me with the Perl to English here? I get that $self is shifting the arguement.

Re: Help me understand

2009-12-05 Thread Uri Guttman
SHC == Shawn H Corey shawnhco...@gmail.com writes: SHC New-style Perl objects are written in Moose don't claim moose is the only new style objects. nor are they the ultimate as they have their issues too. plain old hash objects are fine for most common classes and better in many cases too

Re: Help Me

2009-07-10 Thread Steve Bertrand
Umar Draz wrote: Hello Steve Thanks for your help. Would you please help me one thing more I have string e.g $str = Hello this is my string (1020p0404), this string is not complete (1 034 400 3). now the string complte; I want to remove spaces form within ( ) not whole string.

Re: Help Me

2009-07-10 Thread Christer Ekholm
Steve Bertrand st...@ibctech.ca writes: Umar Draz wrote: Hello Steve Thanks for your help. Would you please help me one thing more I have string e.g $str = Hello this is my string (1020p0404), this string is not complete (1 034 400 3). now the string complte; I want to remove

Re: Help Me

2009-07-10 Thread Steve Bertrand
Christer Ekholm wrote: Steve Bertrand st...@ibctech.ca writes: Umar Draz wrote: Hello Steve Thanks for your help. Would you please help me one thing more I have string e.g $str = Hello this is my string (1020p0404), this string is not complete (1 034 400 3). now the string complte;

Re: Help Me

2009-07-09 Thread Steve Bertrand
Umar Draz wrote: Dear User! I want to get all telephone and mobile number from a string and save into a variable. Here is my example what i am doing. #!/usr/bin/perl $str = This is my string my mobile number is 0300-4459899, 042-8494949 041-8580880 now the string is complete

Re: Help Me

2009-07-09 Thread Chas. Owens
On Thu, Jul 9, 2009 at 15:18, Umar Drazi_deb...@yahoo.com wrote: Dear User! I want to get all telephone and mobile number from a string and save into a variable. Here is my example what i am doing. #!/usr/bin/perl $str = This is my string my mobile number is 0300-4459899, 042-8494949

Re: help me in rearranging line numbers in a file

2008-11-21 Thread Anirban Adhikary
Is this your homework??? On Fri, Nov 21, 2008 at 5:19 PM, Gowri Chandra Sekhar Barla, TLS, Chennai [EMAIL PROTECTED] wrote: Hi all Please help me in rearranging line numbers in a file Example File.txt 1 ghghjghjg 2 1hjkhkjh 3 4 .macro TTT offset 5 TTT 200 6 TTT 300 7

Re: help me in rearranging line numbers in a file

2008-11-21 Thread Rob Dixon
Gowri Chandra Sekhar Barla, TLS, Chennai wrote: Please help me in rearranging line numbers in a file Example File.txt 1 ghghjghjg 2 1hjkhkjh 3 4 .macro TTT offset 5 TTT 200 6 TTT 300 7 fghfghf 8 hjhjkhjkh 9 kgghjgg Output should be File.txt 1 ghghjghjg 2

RE: help me in reading the xml file

2008-01-21 Thread Allam Reddy, Thomas
Thanks Chas Owens for your detailed explanation. It helped me a lot Thanks, Thomas Reddy -Original Message- From: Chas. Owens [mailto:[EMAIL PROTECTED] Sent: Friday, January 18, 2008 9:01 PM To: Allam Reddy, Thomas Cc: beginners@perl.org Subject: Re: help me in reading the xml file

Re: help me in reading the xml file

2008-01-18 Thread Chas. Owens
On Jan 18, 2008 4:34 AM, Allam Reddy, Thomas [EMAIL PROTECTED] wrote: Hi Chas Owens, Thanks for your reply. I am getting the following error when running the code given in the mail. Can't locate XML/Twig.pm in @INC (@INC contains: snip XML::Twig is not part of Core Perl. It (and its

RE: help me in reading the xml file

2008-01-18 Thread Allam Reddy, Thomas
on this? -Original Message- From: Chas. Owens [mailto:[EMAIL PROTECTED] Sent: Thursday, January 17, 2008 9:38 PM To: Allam Reddy, Thomas Cc: beginners@perl.org Subject: Re: help me in reading the xml file On Jan 17, 2008 5:53 AM, Allam Reddy, Thomas [EMAIL PROTECTED] wrote: snip I have got an xml like

RE: help me in reading the xml file

2008-01-18 Thread Allam Reddy, Thomas
Subject: Re: help me in reading the xml file On Jan 18, 2008 4:34 AM, Allam Reddy, Thomas [EMAIL PROTECTED] wrote: Hi Chas Owens, Thanks for your reply. I am getting the following error when running the code given in the mail. Can't locate XML/Twig.pm in @INC (@INC contains: snip XML::Twig

Re: help me die verbosely

2008-01-18 Thread Chas. Owens
On Jan 18, 2008 10:51 AM, Jonathan Mast [EMAIL PROTECTED] wrote: snip #!/usr/bin/perl use strict; use warnings; $SIG{__DIE__} = sub { open my $fh, , something.log or die @_, could not open something.log: $!; print $fh @_; }; die Oops; snip OK, so were binding

Re: help me die verbosely

2008-01-18 Thread Chas. Owens
On Jan 18, 2008 2:45 PM, Andy Greenwood [EMAIL PROTECTED] wrote: snip $SIG{__DIE__} = sub { open my $fh, , something.log or die @_, could not open something.log: $!; print $fh @_; }; die Oops; Would this not be susceptible to infinite recursion if it fails to open

Re: help me in reading the xml file

2008-01-18 Thread Chas. Owens
On Jan 18, 2008 4:54 AM, Allam Reddy, Thomas [EMAIL PROTECTED] wrote: Hi Chas Owens, Thanks for your reply. Is there a way to parse and get the info from xml withou using XML::Twig? snip There are many XML parsing modules in Perl; unfortunately, none of the are part of Core Perl. In fact,

Re: help me die verbosely

2008-01-18 Thread Andy Greenwood
Chas. Owens wrote: On Jan 17, 2008 9:54 AM, Jonathan Mast [EMAIL PROTECTED] wrote: I want to write the errors caught by a 'die' clause into a file. snip Try #!/usr/bin/perl use strict; use warnings; $SIG{__DIE__} = sub { open my $fh, , something.log or die @_, could not

Re: help me in reading the xml file

2008-01-17 Thread Chas. Owens
On Jan 17, 2008 5:53 AM, Allam Reddy, Thomas [EMAIL PROTECTED] wrote: snip I have got an xml like this below. I want to read this file in Perl and want to retrieve the text which end with .xml. For example , I want to print the text jms/hppjmsmodules-jms.xml, since it ends with .xml snip

Re: help me die verbosely

2008-01-17 Thread Chas. Owens
On Jan 17, 2008 9:54 AM, Jonathan Mast [EMAIL PROTECTED] wrote: I want to write the errors caught by a 'die' clause into a file. snip Try #!/usr/bin/perl use strict; use warnings; $SIG{__DIE__} = sub { open my $fh, , something.log or die @_, could not open something.log: $!;

Re: help me die verbosely

2008-01-17 Thread Rob Dixon
Jonathan Mast wrote: I want to write the errors caught by a 'die' clause into a file. In others words, open F somefile.log; blah-blah or die (print F $@) but the above does work. die() sends its output to STDERR, so open STDERR, '', 'somefile.log' or die $!; blah-blah or die

Re: Help me with an url rewrite

2007-08-10 Thread Cristi Ocolisan
: Friday, August 10, 2007 1:15 PM To: [EMAIL PROTECTED] Cc: beginners@perl.org Subject: Re: Help me with an url rewrite Sorry first. But have you looked at my question carefully? Your solution CAN'T work at all! -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; beginners

Re: Help me with an url rewrite

2007-08-10 Thread Nils Kaiser
Hello, well this is more of a mod_rewrite question. The problem is that you have to use the QUERY_STRING variable in order to access parameters, these are not part of the normal scope of the RewriteCond / RewriteRule stuff. Refer to the mod_rewrite guide for that. We use this to append a

Re: Help me with an url rewrite

2007-08-10 Thread pennyyh
Hmm, then please don't post your WRONG solution sample. -Original Message- From: [EMAIL PROTECTED] To: beginners@perl.org Sent: Fri, 10 Aug 2007 6.26PM Subject: Re: Help me with an url rewrite Hmm, 1. I did not sent a solution. 2. I just suggested how you should do. 3

Re: Help me with an url rewrite

2007-08-10 Thread pennyyh
Thank you.it works perfectly. -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: beginners@perl.org; [EMAIL PROTECTED] Sent: Fri, 10 Aug 2007 6.16PM Subject: Re: Help me with an url rewrite Hello, well this is more of a mod_rewrite question. The problem is that you

RE: Help me with an url rewrite

2007-08-10 Thread Cristi Ocolisan
First, you are correct. This is not the list you need. You should use something like this: RewriteRule ^index.php/(.*)$ http://www.site.com/index.php?q1=$1domain=abc More info here: http://www.modrewrite.com/ Hope it helps. Cristi Ocolisan Let the record show: Microsoft is not an Australian

Re: Help me with an url rewrite

2007-08-10 Thread pennyyh
Sorry first. But have you looked at my question carefully? Your solution CAN'T work at all! -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; beginners@perl.org CC: [EMAIL PROTECTED] Sent: Fri, 10 Aug 2007 6.06PM Subject: RE: Help me with an url rewrite First, you

RE: Help me with an url rewrite

2007-08-10 Thread Cristi Ocolisan
: Help me with an url rewrite Hmm, then please don't post your WRONG solution sample. -Original Message- From: [EMAIL PROTECTED] To: beginners@perl.org Sent: Fri, 10 Aug 2007 6.26PM Subject: Re: Help me with an url rewrite Hmm, 1. I did not sent a solution. 2. I just

Re: help me!

2006-06-05 Thread Dr.Ruud
sewe_perl schreef: I wrote a program with activeperl 5.6 some days before,and it could work well. but today I run it under activeperl 5.8,it can work but there are some warnings(Please see the appendix). By the way,activeperl 5.8 do not support Chinese? I guess that you need to put a use

Re: Help me out....

2006-03-10 Thread Tom Phoenix
On 3/9/06, Rakesh Mishra [EMAIL PROTECTED] wrote: well I have to prepare for the tech. interview for the post of Perl Programmer (first time). When they ask you to write a Perl program, start with this: #!/usr/bin/perl use strict; use warnings; That much will probably count for

Re: Help me out....

2006-03-09 Thread Xavier Noria
On Mar 10, 2006, at 6:49, Rakesh Mishra wrote: I feel akward to ask this question, I know this is not the right place to ask this question. well I have to prepare for the tech. interview for the post of Perl Programmer (first time). I have tried google but not usefull, so any of you can

Re: help me

2005-08-30 Thread Owen Cook
On Tue, 30 Aug 2005, Raghavendra Bhat wrote: I am begginer to Perl.. I need write a perl script with subroutine which accepts two strings from standard input and checks whether first string has the second string. Plz help me. Try putting'perl stdin' into google and see if that gives

param, ::, defined; was Re: help me

2004-10-30 Thread Chris Devers
Please use a descriptive subject line. On Sat, 30 Oct 2004, rocky karhe wrote: can anybody tell me where can i get help for perl like: 1) param() You mean the param() function from CGI.pm? See `perldoc CGI`, or

RE: help me

2004-10-30 Thread Murphy, Ged (Bolton)
rocky karhe wrote: i am new to php. Can u plz elaborate how to get it from headers. Is there any function to do so. This is perl, not php. I'm new also but seeing as the list is quiet I'll have a go. Are you familiar with objects? A quick search on CPAN pulled up the Mail::Folder module. This

Re: help me

2004-10-30 Thread Bee
- Original Message - From: rocky karhe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, October 30, 2004 7:59 PM Subject: help me hi can anybody tell me where can i get help for perl like: 1) param() perldoc -m cgi 2) RMD::ForgotPass why :: is used Depends on how

Re: Help me out!!!

2004-03-04 Thread Gary Stainburn
On Thursday 04 March 2004 1:17 pm, Urvashi Mishra wrote: hi ! i am trying to implement multidimentional tree... and saw that a package called Tree::Nary already exits... i am use the above module and i am getting the following error ... Can't locate Tree/Nary.pm [EMAIL PROTECTED] @INC

Re: Help me out!!!

2004-03-04 Thread zsdc
Urvashi Mishra wrote: i am trying to implement multidimentional tree... and saw that a package called Tree::Nary already exits... i am use the above module and i am getting the following error ... Can't locate Tree/Nary.pm [EMAIL PROTECTED] @INC contains: C:\perl\site\lib. i have saved this

RE: help me out please ..

2003-07-17 Thread wiggins
On 17 Jul 2003 08:23:54 -, vemulakonda uday bhaskar [EMAIL PROTECTED] wrote: hi all, i am tring to tranfer files between two linux systems through sftop Please use a more descriptive subject line, help me out please is not terribly to

Re: help me out please ..

2003-07-17 Thread zentara
On 17 Jul 2003 08:23:54 -, [EMAIL PROTECTED] (Vemulakonda Uday Bhaskar) wrote: i am tring to tranfer files between two linux systems through sftop i have installed the following modules : 1. Download Net::FTP and Install 2. Download Net::SFTP . and the error displayed after

Re: help me perl : sftp

2003-06-27 Thread Casey West
It was Friday, June 27, 2003 when vemulakonda uday bhaskar took the soap box, saying: : dear all : : i have a code to tranfer file between two linux machines using : sftp : : for that i used use Net::SFTP, but it is giving error saying : Can't locate Net.SFTP.pm [EMAIL PROTECTED] : (@INC

Re: Help me to build this script

2003-02-13 Thread Rob Dixon
Lielie Meimei wrote: Hello.. I'm still newbie. Could u help me to see why in the script perl here can not compiled, please help me. ==Begin of indexsite.pl == #!/usr/bin/perl Please always: use strict; use warnings; $directory='/root/tmp'; [snip

Re: Help me to build this script

2003-02-12 Thread Janek Schleicher
On Wed, 12 Feb 2003 16:22:41 -0800, Lielie Meimei wrote: Hello.. I'm still newbie. Could u help me to see why in the script perl here can not compiled, please help me. What's the error message printed by Perl ? Normally it includes also the reason and the location of the error.

Re: help me to replace ascii character with some other ascii character or text

2003-01-31 Thread David Eason
R. Joseph Newton wrote: Perhaps the author was using the '97 version, and had not bothered to recheck his prejudices in the last three years. Joseph Given the page is dated January 16th, 1998, you may be right. I am no Microsoft basher. In fact I have an MCSE cert and I used to work with

RE: help me please

2003-01-30 Thread Aimal Pashtoonmal
Dear folks, Can you please recommend possible pointers to my problem. I have a number of perl programs which worked on a large set of txt files, each program producing its own output for each of the files. I then put together a summary file of worth while results from these output files. All

Re: help me to replace ascii charecter with some other ascii charector or text

2003-01-29 Thread John W. Krahn
R. Joseph Newton wrote: If you want to actually use the non-ASCII characters contained in MS Word, you will have to learn the wider character set used. You may also need to come up with a list of MS Word control characters. You might get some help by looking at the source for Demoronizer

Re: help me to replace ascii charecter with some other ascii charector or text

2003-01-29 Thread R. Joseph Newton
John W. Krahn wrote: You might get some help by looking at the source for Demoronizer http://www.fourmilab.ch/webtools/demoroniser/ Hi John, Well, it was a cute read, I must say. The only problem is that I'm not sure quite what application he was talking about. You see, I just tested the

Re: help me to replace ascii charecter with some other ascii charector or text

2003-01-28 Thread David Eason
For starters, it looks like most of your replacements should use the tr/// function (also known as y///). http://www.perldoc.com/perl5.8.0/pod/perlop.html For seconds, $ln=~s/'/'/gis; looks like a no-op to me. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: help me to replace ascii charecter with some other ascii charector or text

2003-01-28 Thread John W. Krahn
Kasi ramanathen wrote: dear friends i'm in work place and i'm facing a problem of replacing an ascii character with some other ascii character i cut the ascii character from my word document and pasted it in my pear programme but the result is not as i expected. plese give me answer with

Re: help me to replace ascii charecter with some other ascii charector or text

2003-01-28 Thread R. Joseph Newton
Kais, Those are not ASCII characters. Nor arem ost of them control characters. They are extended charcters, based on an unsigned, rather than signed, char type. ASCII proper only extends to character 127, the upward-pointing triangle [or the character so rendered by my command environment].

RE: Help me understand References?

2003-01-27 Thread wiggins
On Mon, 27 Jan 2003 14:17:36 -0500, Tim Musson [EMAIL PROTECTED] wrote: snip The above code bit works just fine, with the exception of the $client-{TO} part. That prints ARRAY(0x1d8a454) and I _think_ that is an array reference (right?).

Re: Help me understand References?

2003-01-27 Thread Tim Musson
Hey wiggins, My MUA believes you used to write the following on Monday, January 27, 2003 at 2:37:14 PM. wdo Yes that is an array reference, which is likely correct. Cool, at least I am not totally out to lunch... My question is how do I get it to print correctly like the FROM line?

Re: Help me on concurant comiunication

2002-10-16 Thread Rakhitha Malinda Karunarathne
:29 PM Subject: Re: Help me on concurant comiunication This is a pretty involved issue, so I would need more information to help. By multiple processes, do you mean your server forks? As for more information, Network Programming with Perl by Lincoln D. Stein, covers this issue in detail

Re: Help me on concurant comiunication

2002-10-16 Thread James Edward Gray II
: Re: Help me on concurant comiunication This is a pretty involved issue, so I would need more information to help. By multiple processes, do you mean your server forks? As for more information, Network Programming with Perl by Lincoln D. Stein, covers this issue in detail and is quite good

Re: Help me on concurant comiunication

2002-10-16 Thread Rakhitha Malinda Karunarathne
Edward Gray II [EMAIL PROTECTED] To: Rakhitha Malinda Karunarathne [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, October 16, 2002 11:43 PM Subject: Re: Help me on concurant comiunication Again, this is very complicated, so I can really only give basic theory. The usual strategy

Re: Help me on concurant comiunication

2002-10-16 Thread James Edward Gray II
Subject: Re: Help me on concurant comiunication Again, this is very complicated, so I can really only give basic theory. The usual strategy of forking servers is to fork just after they receive a connection. The main loop usually looks close to: while (my $c = $socket-accept) { my $child

Re: Help me on concurant comiunication

2002-10-15 Thread James Edward Gray II
This is a pretty involved issue, so I would need more information to help. By multiple processes, do you mean your server forks? As for more information, Network Programming with Perl by Lincoln D. Stein, covers this issue in detail and is quite good, I think. James On Tuesday, October 15,

RE: HElP ...me!

2002-06-25 Thread Shishir K. Singh
Hi everybody, Hopefully some of you will help to solve my problem!! I'm trying to parse a flat file formatted file. It's a PDB (Protein Data Bank). But I didn't find any script on internet and perl.com. If you'll help me, I will be happy and solve the problem.. Thank you. Bryce Can You

RE: HElP ...me!

2002-06-25 Thread Kipp, James
this and grab what you want like 'code', 'author name' , and the atom lines you want perldoc -f split perldoc -f substring perldoc -f grep -Original Message- From: Baris Ozol [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 25, 2002 10:13 AM To: 'Kipp, James' Subject: RE: HElP ...me

RE: help me with a better backstepper?

2002-03-06 Thread Russ Foster
DISCLAIMER: This is UNTESTED ... It's just something to try... $OrgLine = adshe ms0e sad qweoic,m qwod x0 vndu qiudb siu ; While length of $OrgLine 70 { Match on =~ /(.{0,70})\s/ Print $1 Remove $1 from $OrgLine ; } Print remainder of $OrgLine; So, the regex would

Re: help me with a better backstepper?

2002-03-06 Thread John W. Krahn
M Z wrote: Hi Hello, I've written a little program to analyze lines that are longer than 70 characters, and if so, break at position 70 (if it is whitespace), if not whitespace (i.e. is in the middle of a word) it steps back to the first whitespace and breaks there. However, I think

Re: help me with a better backstepper?

2002-03-06 Thread Jeff 'japhy' Pinyan
On Mar 6, M z said: I've written a little program to analyze lines that are longer than 70 characters, and if so, break at position 70 (if it is whitespace), if not whitespace (i.e. is in the middle of a word) it steps back to the first whitespace and breaks there. s/(.{1,70})\s/$1\n/g; That

Re: Help me out

2002-02-15 Thread Susan Aurand
I took your advice and added the following code to my source code. I want to print the students name to the result file regardless if I add a number on the end of the student name or not. I have tried putting the PRINT O at different location in this code. I can not get it to print to the result

RE: Help me out

2002-02-15 Thread John Edwards
exactly what you are trying to do? Maybe then we can help some more. Thanks John -Original Message- From: Susan Aurand [mailto:[EMAIL PROTECTED]] Sent: 15 February 2002 15:14 To: [EMAIL PROTECTED] Subject: Re: Help me out I took your advice and added the following code to my source code. I

RE: Help me out

2002-02-14 Thread Dennis G. Wicks
NO! Don't use Matt's Script Archive!!! That code is old and full of errors. Go to http://nms-cgi.sourceforge.net/ and you will find the rest of the story and equivalent scripts that are well written and tested. Also, check out http://perl.about.com/ for some good

RE: Help me out

2002-02-14 Thread Victoria Elliott
I really suggest the O'Reilly books, Learning Perl 3rd edition. ISBN 0-596-00132-0 Also go to www.CPAN.org, and follow the FAQ on what you need to run a Perl environment on your system. After you've setup an environment, you can start by running some examples in the book to get a grasp. V

RE: Help me out

2002-02-14 Thread Aaron Shurts
To: 'amrinder singh'; [EMAIL PROTECTED] Subject: RE: Help me out I really suggest the O'Reilly books, Learning Perl 3rd edition. ISBN 0-596-00132-0 Also go to www.CPAN.org, and follow the FAQ on what you need to run a Perl environment on your system. After you've setup an environment, you can start

Re: Help me out

2002-02-14 Thread Matthew Peter Lyon
get the O'Riley learning perl book get the black book get the cookbook ( O'Riley ) you'll be a pro. - Original Message - From: amrinder singh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 14, 2002 12:24 PM Subject: Help me out I have just started learning perl a

RE: Help me out

2002-02-14 Thread Yacketta, Ronald
]] Sent: Thursday, February 14, 2002 11:49 To: amrinder singh; [EMAIL PROTECTED] Subject: Re: Help me out get the O'Riley learning perl book get the black book get the cookbook ( O'Riley ) you'll be a pro. - Original Message - From: amrinder singh [EMAIL PROTECTED] To: [EMAIL

RE: Help me out

2002-02-14 Thread Naika - EV1
] Subject: RE: Help me out its that simple? WoW! I must have fubarbed somewhere, I have those books as well as several others and hell I am not even close to be a pro!/me dreams about the day I can be a perl gawd like Randel (spelling) -Ron -Original Message- From: Matthew Peter Lyon

RE: Help me out

2002-02-14 Thread Richard Crawford
-Original Message- From: Yacketta, Ronald [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 8:50 AM To: [EMAIL PROTECTED] Subject: RE: Help me out its that simple? WoW! I must have fubarbed somewhere, I have those books as well as several others and hell I am not even

RE: Help me out

2002-02-14 Thread Timothy Johnson
Crawford [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 1:57 PM To: Naika - EV1 Cc: Yacketta, Ronald; [EMAIL PROTECTED] Subject: RE: Help me out The books that Matthew suggested are excellent resources, I've found (though I would also recommend Programming Perl, also from O'Reilly

RE: Help me out

2002-02-14 Thread Naika - EV1
2:04 PM To: 'Naika - EV1' Subject: RE: Help me out If you learn by seeing then look at other people's code to learn. Correct their mistakes, make the code more efficient and easier to read/understand. I learned Perl 3 years ago and that was with Perl4. I didn't really learn perl until I started

Re: Help me out

2002-02-14 Thread Matthew Peter Lyon
, Ronald [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, February 14, 2002 3:48 PM Subject: RE: Help me out Yeah I agree, I owe about 5 perl books and have read them all but still find it difficult to code the most basic of things. I wish there were more step by step how to's out

RE: Help me out

2002-02-14 Thread Dennis G. Wicks
NO! Don't use Matt's Script Archive!!! That code is old and full of errors. Go to http://nms-cgi.sourceforge.net/ and you will find the rest of the story and equivalent scripts that are well written and tested. Also, check out http://perl.about.com/ for some good

Re: Help me out

2002-02-14 Thread Brett W. McCoy
On Thu, 14 Feb 2002, Matthew Peter Lyon wrote: hey, leading off this... a question for the group... are the ways in programming to solve problems / situations called 'design patterns' ? Well, sorta... 'design patterns' refers to a specific way of analyisng software design. It actually comes

Re: Help me !

2001-09-06 Thread Roger C Haslock
I'm not sure the other answers you have had address all the problem. They have all addressed the problem of (possibly multiple) whitespace (\s) at the end of a line. You have asked to remove all the newline characters in a string. I would propose $string =~ s/\n//g; The s does a substitute;

RE: Help Me

2001-08-30 Thread John Edwards
You don't mention which one you are having problems with. First off though, you should change $custdir=/uhome/cachet/temp/temp1/cust/; to $custdir=/uhome/cachet/temp/temp1/cust; as you are adding the trailing slash when you open the file. open (CHAN, $custdir/mail.txt)

Re: HELP ME-new to perl

2001-06-22 Thread Tim Musson
Hey sridevi, Friday, June 22, 2001, 3:07:40 AM, you wrote: sa Hi all, Could anyone briefly explain the difference between sa the shell script and the scripting language like perl? Thanx in sa advance, visu sa __ sa Do You Yahoo!? sa Get

  1   2   >