Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Conversion is done based on operator, and Perl has different operators for string and numeric operations. For example, == and eq are different operators, with the former doing numeric equivalence comparison, and the latter doing string equivalence comparison. The implicit conversion done to operands in each case is well defined and obvious.

Edit: Whoops, had operators reversed because I explained them after the fact. Fixed!



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: