Re: Reg Exp after newline

2012-01-22 Thread John W. Krahn
Lívio Cipriano wrote: Hi, Hello, It's possible to build in Perl a Regular Expression to grab a pattern that extends by two lines ? Yes it is. I want to read a file and know if it's a email message or not, fetching the first Message-Id found. The problem is that some email clients put the

Scalar::Util::blessed() considers Regexp references to be blessed?

2012-01-22 Thread David Christensen
beginners@perl.org: While coding some tests tonight, I discovered that Scalar::Util::blessed() considers Regexp references to be blessed. Is this a bug or a feature? TIA, David 2012-01-22 21:07:57 dpchrist@p43400e ~/sandbox/perl $ cat blessed #! /usr/bin/perl # $Id: blessed,v 1.1 2012-0

Reg Exp after newline

2012-01-22 Thread Lívio Cipriano
Hi, It's possible to build in Perl a Regular Expression to grab a pattern that extends by two lines ? I want to read a file and know if it's a email message or not, fetching the first Message-Id found. The problem is that some email clients put the Message-Id tag in one line, like this Messa

Re: Net::Openssh and sudo?

2012-01-22 Thread Salvador Fandiño
On 01/20/2012 08:10 PM, Rajeev Prasad wrote: hello, using Net::Openssh how can i use sudo to become some other user (say root) on a target machine and then execute a series of commands as root? i looked and tried to use the expect example given on Net::Openssh page but could not make it to

Re: The Perl Programming Language

2012-01-22 Thread Ron Wingfield
I've also found the O'Reilly publications, _CGI programming with Perl_, and _Programming the Perl DBI_ very helpful. Shlomi Fish wrote: Hello Lívio, On Sun, 22 Jan 2012 13:47:26 + Lívio Cipriano wrote: Hi, I'm new to Perl but old in other programming languages. Is there a equivale

Collecting variables from Hash

2012-01-22 Thread Pradeep Patra
Hi, I have a hash reference as follows: $VAR1 = { A.processor0.error => 0 A.processor0.success => 77 A.processor0.total=> 77 A.processor1.error=> 0 A.processor1.success => 57 A.processor1.total=> 57 A.processor2.error=>

Re: The Perl Programming Language

2012-01-22 Thread Shlomi Fish
Hello Lívio, On Sun, 22 Jan 2012 13:47:26 + Lívio Cipriano wrote: > Hi, > > I'm new to Perl but old in other programming languages. Is there a equivalent > book in Perl as to the The C Programming Language? > the canonical book about Perl is Programming Perl by Larry Wall et al. There we

Re: The Perl Programming Language

2012-01-22 Thread Shawn H Corey
On 12-01-22 08:47 AM, Lívio Cipriano wrote: Hi, I'm new to Perl but old in other programming languages. Is there a equivalent book in Perl as to the The C Programming Language? Yes, try: http://www.perl.org/books/library.html -- Just my 0.0002 million dollars worth, Shawn Programming

The Perl Programming Language

2012-01-22 Thread Lívio Cipriano
Hi, I'm new to Perl but old in other programming languages. Is there a equivalent book in Perl as to the The C Programming Language? Regards Lívio Cipriano -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/