The Artima Developer Community
Sponsored Link

Python Buzz Forum
Python to Perl

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Phillip Pearson

Posts: 1083
Nickname: myelin
Registered: Aug, 2003

Phillip Pearson is a Python hacker from New Zealand
Python to Perl Posted: Oct 8, 2005 5:36 AM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Phillip Pearson.
Original Post: Python to Perl
Feed Title: Second p0st
Feed URL: http://www.myelin.co.nz/post/rss.xml
Feed Description: Tech notes and web hackery from the guy that brought you bzero, Python Community Server, the Blogging Ecosystem and the Internet Topic Exchange
Latest Python Buzz Posts
Latest Python Buzz Posts by Phillip Pearson
Latest Posts From Second p0st

Advertisement

Argh, after a few years of Python programming, Perl syntax is a pain in the ass to relearn.

Finally figured out that {'asdf' => 'foo'} returns a hash reference. To get a plain hash, you don't use curly brackets - it's just ('asdf' => 'foo'). I knew arrays did this - that typing [1, 2, 3] gave me an array ref and (1, 2, 3) gave me an array - but didn't realise that hashes behaved the same.

Languages like Python that don't make you jump through hoops to use references are nice, but they make life difficult when you want to go back to lower level languages like Perl or C...

Comment

Read: Python to Perl

Topic: PyCon2005 podcast Previous Topic   Next Topic Topic: I was waiting for someone to do this

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use