drieux is right about me being exploring Perl. In fact, that is a good exercice to play with regular expressions and data types as I had to build a hash of hashes to do the thing.
However, I wouldn't let a script in that stat if I knew of a better/quicker/shorter method. I will then have to improve my script soon. What would be the best way to put values returned by the ps command you just mentionned in variables? Thanks again for your great help. P.S : I look like the typical lazy guy who don`t even read and try by himself. This is because I am at work, and overloaded with other things, and as you know bosses, I made the mistake to tell him that I would do that little thing in Perl, he know thinks that I am a Perl guru! I've started reading a Perl5 book by the evenings, so, I do my homework in some way :-) I appreciate your help. Thanks again, Best regards, Steve Hemond Programmeur Analyste / Analyst Programmer Smurfit-Stone, Ressources Forestières La Tuque, P.Q. Tel.: (819) 676-8100 X2833 [EMAIL PROTECTED] > -----Original Message----- > From: drieux [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 17, 2003 2:04 PM > To: Perl Perl > Subject: Re: RE : RE : Regular expressions > > > > On Dec 17, 2003, at 10:40 AM, Wiggins d Anconia wrote: > [..] > > Ah! And now we have come full circle back to "Why you > should use a > > module to handle this type of code rather than re-inventing the > > wheel!".... > [..] > > technically I agree with you. In terms of code re-use > and code maintainability. So it sorta depends upon > what the 'real goal' is all about... > > There is also the minor point, > that some times doing silly things that > are better covered in an already established > module will help folks 'get it' about what > they are doing and how they can do things. > > In this case steve Thought that his problem > was with his lack of knowledge about 'regular expression' > and how to do that. When his issue was with how to > effectively use split() - one of the variants that > he could have used of course would have been > > my ($uid,$pid,$ppid,$c,$stime,$tty,$time,$cmd,@args) = split; > > But that would have meant dealing with @args problem > where he needed to find TWO things in an array in a > given order, rather than merely regExing a longer scalar. > > > > ciao > drieux > > --- > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>