YAPC::2004::Israel << Previous | Index | Next >> Copyright © 2002 Gaal Yahas

What else floats on water?


  • $_ is a global

    • in short foreach loops it's okay to use it

    • implicit localization protects code *around* the loop, not *inside* it

  • map and grep *always use $_* so they are vulnerable

    • If the code they call modifies $_, they can break