Skip to content

Instantly share code, notes, and snippets.

@mtsuszycki
Last active December 21, 2016 12:52
Show Gist options
  • Save mtsuszycki/09ac3d3ffc4ac7e16ade67df927bc85a to your computer and use it in GitHub Desktop.
Save mtsuszycki/09ac3d3ffc4ac7e16ade67df927bc85a to your computer and use it in GitHub Desktop.
ruby, python, perl, php comparision side by side
  • | perl | php | python | ruby ------------ |------------ | ------------- | -------------| ------------- block | {} | {} | : | {} statement separator | ; or nl | ; | ; or nl | ; or nl comment | # | // # | # | # comment1 | =pod =cut | /* abc */ | '''abc''' | =begin =end string slice | - | - | mystring[0:4] | -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment