Tim Johnson wrote:
Chetak Sasalu wrote:

$var =~ m/Owner: (\w{5})\s*: rwx \(all\)/; $y = $1;

That is one way to do it, but maybe you should tell him what it is that the regex does. I remember from my newbie days that it wasn't too useful when people just threw regexes at me without explaining them because they look so daunting before you are used to them.

Chetak *could* have done so, but doing it is certainly nothing you can claim that he *should* do. What *should* happen is that the OP ("Jack
Jack") start studying some appropriate documentation, such as


http://www.perldoc.com/perl5.8.4/pod/perlretut.html

and

http://www.perldoc.com/perl5.8.4/pod/perlop.html#Regexp-Quote-Like-Operators

and tries to understand the suggestion out from them. Possible
follow-up questions should be posted only after that.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to