Re: Check if a module is installed properly

2007-11-14 Thread Rob Dixon
jeevs wrote: It happened that i tried installing Net::SSH::Perl from cpan. After a long haul and installing most of the dependencies it happend that installation was aborted in between with the message. ## Failed Test Stat Wstat Total Fail Fa

Re: How can I assign system() call to a Variable

2007-11-14 Thread Marco
Hi.. Thanks for all you guys help & Suggestion. Actually I truned around to use the other way to get the data I need since system() give me such a hard time... :( my $inactive = "cat /proc/meminfo | grep -w Inactive | sed 's/ ^.*Inactive://g' | sed 's/kB//'"; open(DATA, "$inactive|") || die "Ca

Re: How can I assign system() call to a Variable

2007-11-14 Thread Marco
Hi... Relly appreciate all of you guys' help. You guys did provide me valuable information. I will give it a try all you guys suggestion. Actually I gave up the system() call last night since it gave me such a hard time. The other way I did is shown below to get the data I need, my $inactiv

Re: Meta: please don't mail here if you have huge useless pointless disclaimers (was Re: SOH char)

2007-11-14 Thread Chas. Owens
On Nov 14, 2007 12:59 PM, Omega -1911 <[EMAIL PROTECTED]> wrote: > > -- > > Oh hell, why doesn't *the great one* create a regex to remove > contiguous lines that contain *certain* words on his end? Oh my fault, > this list is his kingdom... Perl's excellent for text manipulation. snip Because of n

Re: Meta: please don't mail here if you have huge useless pointless disclaimers (was Re: SOH char)

2007-11-14 Thread Omega -1911
> -- Oh hell, why doesn't *the great one* create a regex to remove contiguous lines that contain *certain* words on his end? Oh my fault, this list is his kingdom... Perl's excellent for text manipulation. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: Tree data structure

2007-11-14 Thread Chas. Owens
On Nov 14, 2007 12:24 PM, Chas. Owens <[EMAIL PROTECTED]> wrote: > On Nov 13, 2007 8:13 PM, vijay <[EMAIL PROTECTED]> wrote: > > I am trying to use Graph::Directed to test if a structure is a DAG or > > a tree. There is a simple method to test whether the graph is a DAG. > > However, I could not fi

Re: Tree data structure

2007-11-14 Thread Chas. Owens
On Nov 13, 2007 8:13 PM, vijay <[EMAIL PROTECTED]> wrote: > I am trying to use Graph::Directed to test if a structure is a DAG or > a tree. There is a simple method to test whether the graph is a DAG. > However, I could not find a way to test if it is a tree. snip If my understanding of the graph

Re: Meta: please don't mail here if you have huge useless pointless disclaimers (was Re: SOH char)

2007-11-14 Thread Rob Dixon
Chas. Owens wrote: On Nov 14, 2007 9:45 AM, Jay Savage <[EMAIL PROTECTED]> wrote: While I certainly share your annoyance, I don't think we should punish people for their employers' sins. The problem is that there is no way to correctly guess where the content ends and the sig begins (damn uns

Re: Meta: please don't mail here if you have huge useless pointless disclaimers (was Re: SOH char)

2007-11-14 Thread Chas. Owens
On Nov 14, 2007 9:45 AM, Jay Savage <[EMAIL PROTECTED]> wrote: > On Nov 13, 2007 12:13 PM, Randal L. Schwartz <[EMAIL PROTECTED]> wrote: > > > > > So, you have a one line question, and 15 lines of disclaimer, which is not > > even legally enforcable? That's really pretty inexcusable to thrust on a

Re: Meta: please don't mail here if you have huge useless pointless disclaimers (was Re: SOH char)

2007-11-14 Thread Jay Savage
On Nov 13, 2007 12:13 PM, Randal L. Schwartz <[EMAIL PROTECTED]> wrote: > > So, you have a one line question, and 15 lines of disclaimer, which is not > even legally enforcable? That's really pretty inexcusable to thrust on a > mailing list. Did I mention it's pointless, and unenforcable? > > Pl

Re: How can I assign system() call to a Variable

2007-11-14 Thread yaron
Hi, Note that you can use the $? variable to get the command exit status: Yaron Kahanovitch - Original Message - From: "Jeff Pang" <[EMAIL PROTECTED]> To: "Beginner" <[EMAIL PROTECTED]> Cc: beginners@perl.org Sent: Wednesday, November 14, 2007 11:24:21 AM (GMT+0200) Asia/Jerusalem Subjec

CPAN auxiliary pages & indexing

2007-11-14 Thread Karl Erisman
Hi p.b, What conditions on a CPAN module must hold in order for cpantesters and cpanform to create pages for that dist? My module, App::Smbxfer, is indexed and in the module list. It shows up on most of the CPAN pages (i.e. it is on the other CPAN search pages, ANNOCPAN, RT, CPANTS, ...) but not

Re: How can I assign system() call to a Variable

2007-11-14 Thread Ron Bergin
On Nov 13, 7:11 pm, [EMAIL PROTECTED] (Marco) wrote: > Hi... > > Can someone help me on this? Actually I can get the dara from the > system()...But it shows "0" when I print the $result...How can I > assign the system() to $result ?Thanks... > > here below is the code... > > $inact = "cat /proc

Re: How can I assign system() call to a Variable

2007-11-14 Thread Ron Bergin
On Nov 13, 7:11 pm, [EMAIL PROTECTED] (Marco) wrote: > Hi... > > Can someone help me on this? Actually I can get the dara from the > system()...But it shows "0" when I print the $result...How can I > assign the system() to $result ?Thanks... > > here below is the code... > > $inact = "cat /proc

Re: socket programming in perl

2007-11-14 Thread Jeff Pang
On Nov 14, 2007 5:45 PM, Raan <[EMAIL PROTECTED]> wrote: > Hi All, > > I have to do some kind of socket programming in perl . > > Is it possible to do some kind of socket programming in perl. > Yes it's very possible. Perl's socket functions are strong enough to build any network application you w

socket programming in perl

2007-11-14 Thread Raan
Hi All, I have to do some kind of socket programming in perl . Is it possible to do some kind of socket programming in perl. Regards, Raan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Tree data structure

2007-11-14 Thread vijay
I am trying to use Graph::Directed to test if a structure is a DAG or a tree. There is a simple method to test whether the graph is a DAG. However, I could not find a way to test if it is a tree. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http

Re: How can I assign system() call to a Variable

2007-11-14 Thread Jeff Pang
On Nov 14, 2007 5:18 PM, Beginner <[EMAIL PROTECTED]> wrote: > On 13 Nov 2007 at 19:11, Marco wrote: > > my $result = system($inact); > print $result; > my $result = `system commands`; print $result; system() returns nothing but the executed status of the command itself. -- To unsubscribe, e-

Re: How can I assign system() call to a Variable

2007-11-14 Thread Beginner
On 13 Nov 2007 at 19:11, Marco wrote: > Hi... Hi > Can someone help me on this? Actually I can get the dara from the > system()...But it shows "0" when I print the $result...How can I > assign the system() to $result ?Thanks... > > here below is the code... > > $inact = "cat /proc/meminfo

Re: Check if a module is installed properly

2007-11-14 Thread jeevs
Thanks for the comment Sir. I was using some less efficient way to check if the module was installed. - Nexis http://startperl.blogspot.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

How can I assign system() call to a Variable

2007-11-14 Thread Marco
Hi... Can someone help me on this? Actually I can get the dara from the system()...But it shows "0" when I print the $result...How can I assign the system() to $result ?Thanks... here below is the code... $inact = "cat /proc/meminfo | grep -w Inactive | sed 's/^.*Inactive: // g' | sed 's/kB

Re: Meta: please don't mail here if you have huge useless pointless disclaimers (was Re: SOH char)

2007-11-14 Thread Lars Haugseth
* [EMAIL PROTECTED] (John W . Krahn) wrote: > > On Tuesday 13 November 2007 13:15, [EMAIL PROTECTED] wrote: > > On Nov 13, 9:13 am, [EMAIL PROTECTED] (Randal L. Schwartz) wrote: > > > > > long disclaimer> So, you have a one line question, and 15 lines of > > > disclaimer > > > > Oh, no, Randal,