Re: kill process when file number reached...



John W. Krahn <someone@xxxxxxxxxxx> wrote:
Eric Pozharski wrote:
*SKIP*
$c = (split m{\s+}, $x)[1];

split ' ' and split m{\s+} do different things so the list element ()[1]
may not return the expected result depending on whether there is leading
whitespace in $x.

I agree, but leading space in B<ps> output would be a big surprise.

--
Torvalds' goal for Linux is very simple: World Domination
.



Relevant Pages

  • Re: Perl newbie please help
    ... On Fri, 9 Jul 2004, John W. Krahn wrote: ... >> perhaps have extra whitespace attached to either end? ... > It can't have any whitespace as the previous line removes all ...
    (comp.lang.perl.misc)
  • Re: Perl style examples (summary)
    ... For CGI: http://users.easystreet.com/ovid/cgi_course/ (John W. Krahn) ... "Perl Best Practices" by Damian Conway ... Janet Goldstein, Christian Winter, Adrian Howard. ...
    (comp.lang.perl.moderated)
  • Re: Comparing hash tables
    ... John W. Krahn napisal: ... certain sorts of tools at low cost and in short order. ...
    (comp.lang.perl.misc)
  • Re: Fibonacci string
    ... John W. Krahn wrote: ... Take the string '1' and replace it with '10'. ... >>> a Fibonacci sequence for each count (offset by one iteration). ...
    (comp.lang.perl.misc)
  • Re: Regexp help.
    ... John W. Krahn wrote: ... so I decided to strip them off. ... a scout around www.nslu2-linux.org - and perhaps there isn't any easier ...
    (comp.lang.perl.misc)