Yes, it is entirely equivalent. See perlop for the details.
In reply to Re^3: perl writing to xml file (xml::writer) by hippo in thread perl writing to xml file (xml::writer) by analys