1. 26 5月, 2023 1 次提交
  2. 12 4月, 2023 2 次提交
  3. 10 8月, 2021 1 次提交
  4. 27 2月, 2020 1 次提交
  5. 08 1月, 2019 1 次提交
  6. 28 2月, 2018 1 次提交
  7. 27 2月, 2018 1 次提交
  8. 14 2月, 2018 1 次提交
  9. 06 7月, 2017 2 次提交
  10. 21 2月, 2017 1 次提交
  11. 02 7月, 2016 1 次提交
  12. 20 4月, 2016 1 次提交
  13. 12 2月, 2016 1 次提交
    • R
      Perl's chop / chomp considered bad, use a regexp instead · 9ba96fbb
      Richard Levitte 提交于
      Once upon a time, there was chop, which somply chopped off the last
      character of $_ or a given variable, and it was used to take off the
      EOL character (\n) of strings.
      
      ... but then, you had to check for the presence of such character.
      
      So came chomp, the better chop which checks for \n before chopping it
      off.  And this worked well, as long as Perl made internally sure that
      all EOLs were converted to \n.
      
      These days, though, there seems to be a mixture of perls, so lines
      from files in the "wrong" environment might have \r\n as EOL, or just
      \r (Mac OS, unless I'm misinformed).
      
      So it's time we went for the more generic variant and use s|\R$||, the
      better chomp which recognises all kinds of known EOLs and chops them
      off.
      
      A few chops were left alone, as they are use as surgical tools to
      remove one last slash or one last comma.
      
      NOTE: \R came with perl 5.10.0.  It means that from now on, our
      scripts will fail with any older version.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      9ba96fbb
  14. 28 1月, 2016 1 次提交
  15. 27 6月, 2014 1 次提交
  16. 19 9月, 2007 1 次提交
  17. 29 8月, 2005 1 次提交
  18. 28 12月, 2003 1 次提交
  19. 03 12月, 2001 1 次提交
  20. 06 3月, 2001 1 次提交
  21. 07 8月, 2000 1 次提交
  22. 11 8月, 1999 1 次提交
  23. 14 2月, 1999 1 次提交
  24. 21 12月, 1998 1 次提交