Re: How hard is it to learn this langauge?

2009-02-08 Thread Erez Schatz
2009/2/8 Blazer : > I have limited experience of programming in C & C++ - Good. Perl has a C-like syntax, and supports a lot of C's idioms. It is, in my experience easier to learn as a second language, after you learned (at least some) other language. > I just kept reading that Perl was a very ea

Re: How hard is it to learn this langauge?

2009-02-08 Thread Damien Learns Perl
I have experience in C and I find that Perl would have been a much easier language to start with. You can write powerful code right away. I started to learn Perl last month and I am blogging about it at: http://damienlearnsperl.blogspot.com/ This is certainly not academic Perl but you can come c

RE: Reading file and changing contents which are not in one line

2009-02-08 Thread Sarsamkar, Paryushan
Thanks ... Thanks, Paryushan -Original Message- From: Rob Dixon [mailto:rob.di...@gmx.com] Sent: Friday, February 06, 2009 9:23 PM To: Perl Beginners Cc: Sarsamkar, Paryushan Subject: Re: Reading file and changing contents which are not in one line Sarsamkar, Paryushan wrote: > Hi All,

Re: Help With Filtering Messages

2009-02-08 Thread Jeff Peng
2009/2/9 : > I know there is probably a simple solution for this, but can anyone help me > with code to filter out messages with extended characters like these: > > àïåëüñèí > êàïèëêà > òàáëåòêè > ïåðåêèñü > òåëåôîí > òåòðàäè > êàðàíäàøè > îá¸ðòêè îò êàíôåò > êîðîáêà îò òåëåôîíà > âàòà > âàçà > ä

Re: Help With Filtering Messages

2009-02-08 Thread Chas. Owens
On Sun, Feb 8, 2009 at 21:32, wrote: > I know there is probably a simple solution for this, but can anyone help me > with code to filter out messages with extended characters like these: snip It might be easier to specify what characters you want to allow rather than the characters you don't. B

Help With Filtering Messages

2009-02-08 Thread Jimstone77
I know there is probably a simple solution for this, but can anyone help me with code to filter out messages with extended characters like these: àïåëüñèí êàïèëêà òàáëåòêè ïåðåêèñü òåëåôîí òåòðàäè êàðàíäàøè îá¸ðòêè îò êàíôåò êîðîáêà îò òåëåôîíà âàòà âàçà äèñêè êíèãè è òåòðàäè È åùå êó÷à áóì

Re: Windows Timestamp in readable Format

2009-02-08 Thread Rob Dixon
Sebastian Cabrera wrote: > > I need some help writing a little script doing some LDAP queries to a > Windows Active Directory. > Querying the value of the time when the password was last set i just get > the Windows timestamp. > Is there any way to convert it into a readable format? > I'm runnin

Re: free perl editor wanted

2009-02-08 Thread Craig
try emacs --- On Sun, 2/8/09, itshardtogetone wrote: From: itshardtogetone Subject: free perl editor wanted To: beginners@perl.org Date: Sunday, February 8, 2009, 5:22 PM Can someone introduce me a free Perl editor that also can easily produce html codes. Thanks

Re: How hard is it to learn this langauge?

2009-02-08 Thread itshardtogetone
From: "Blazer" To: Sent: Sunday, February 08, 2009 7:05 AM Subject: How hard is it to learn this langauge? I just kept reading that Perl was a very easy language to learn. Is this true or is it propaganda??? Perl is quite easy to learn. Example if you wish to print out "Hello World" , you

Re: Help matching with Regular expression

2009-02-08 Thread Jim
On Feb 7, 5:17 am, rob.di...@gmx.com (Rob Dixon) wrote: > Jim wrote: > > > How do I match a line ending in > > ,@@) > > using a regular expression? > > my $line = "1234567890,@@)\n"; > > if ($line =~ m/,@@\)$/) { >   print "OK\n"; > > } > > HTH, > > Rob Thanks that works -- To unsubscribe, e-mai

free perl editor wanted

2009-02-08 Thread itshardtogetone
Can someone introduce me a free Perl editor that also can easily produce html codes. Thanks

How hard is it to learn this langauge?

2009-02-08 Thread Blazer
I have limited experience of programming in C & C++ - I cant claim to know either of these well, but i do try to keep building on what i know, when i can. I just kept reading that Perl was a very easy language to learn. Is this true or is it propaganda??? All I know is Larry Wall created it! Is it

Re: rsh shell command hangs and does not return

2009-02-08 Thread Ice Man
On Feb 7, 7:17 am, chas.ow...@gmail.com (Chas. Owens) wrote: > On Fri, Feb 6, 2009 at 14:31, Ice Man wrote: > > Ok . so I have to start a program which is written in java. > > > #!/local/bin/perl > > > my $command = "/aa/bb/c/executable \&"; > > my $ret = 0; > > > $ret = `$command`; > > > exit

Re: Help matching with Regular expression

2009-02-08 Thread Dr.Ruud
Rob Dixon wrote: Jim wrote: How do I match a line ending in ,@@) using a regular expression? my $line = "1234567890,@@)\n"; if ($line =~ m/,@@\)$/) { print "OK\n"; } Be careful with unescaped "@" characters: $ perl -wle' my $line = "1234567890,@+)\n"; # print $line; my $qr = qr/,

Re: RegEx to extract last character of a line

2009-02-08 Thread Dr.Ruud
Greg wrote: I have an input file that I have to evaluate whether to include lines based upon their last character. Is there a simple regex that would allow me to assign the very last character to a variable? In my case it will either be A or I (capital i) if that helps? while ( <$fh_in> )

Re: Help matching with Regular expression

2009-02-08 Thread Dr.Ruud
Jim wrote: How do I match a line ending in ,@@) using a regular expression? TIMTOWTDI: /,\...@\@\)$/ -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Windows Timestamp in readable Format

2009-02-08 Thread Gunnar Hjalmarsson
Sebastian Cabrera wrote: I need some help writing a little script doing some LDAP queries to a Windows Active Directory. Querying the value of the time when the password was last set i just get the Windows timestamp. Is there any way to convert it into a readable format? What does a Windows t

Re: Regular Expressions

2009-02-08 Thread Gunnar Hjalmarsson
Chas. Owens wrote: On Sun, Feb 8, 2009 at 03:49, Gunnar Hjalmarsson wrote: Sorry, but I fail too see how using the s/// operator to extract the date field would be so much more confusing and fragile compared to split() + join(). You are calling three functions (one of which is split) and assi

Windows Timestamp in readable Format

2009-02-08 Thread Sebastian Cabrera
Hi All, I need some help writing a little script doing some LDAP queries to a Windows Active Directory. Querying the value of the time when the password was last set i just get the Windows timestamp. Is there any way to convert it into a readable format? I'm running the script on a linux machi

Re: Forked script doesnt exec from a cgi script

2009-02-08 Thread Neetee Pawa
Hi Jeff, I got that already, thanks. It was a permission issue. Regards Neetee CSC • This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall no

Re: Regular Expressions

2009-02-08 Thread Chas. Owens
On Sun, Feb 8, 2009 at 03:49, Gunnar Hjalmarsson wrote: > Chas. Owens wrote: >> >> On Sat, Feb 7, 2009 at 19:11, Gunnar Hjalmarsson >> wrote: >>> >>> TMTOWTDI >>> >>> use Time::Local; >>> while () { >>> s{,(.+?),}{ >>> my ($d, $m, $y) = split /\//, $1; >>> my $t = ti

Re: Regular Expressions

2009-02-08 Thread Gunnar Hjalmarsson
Chas. Owens wrote: On Sat, Feb 7, 2009 at 19:11, Gunnar Hjalmarsson wrote: TMTOWTDI use Time::Local; while () { s{,(.+?),}{ my ($d, $m, $y) = split /\//, $1; my $t = timelocal 0, 0, 0, $d, $m-1, $y; ($d, $m, $y) = (localtime $t)[3..5]; s

Forked script doesnt exec from a cgi script

2009-02-08 Thread Neetee Pawa
Hi All, I am trying to invoke a perl script in background from a cgi script. Code seems working as i can see the script gets invoked however nothing gets executed from the script. ( the script is functioning fine from the command prompt) Here is what i have written $SIG{CHLD}='IGNORE'; my $p