in reply to Re: Parse XML into CSV Files
in thread Parse XML into CSV Files

Thanks for the Help,
I have no control over the XML. it is exported from a vehicle management program in order to put the details of vehicles onto a website.

I have generated a couple of variables to use later on in the script, once the Vehicle processing has happened.

Do i have to use the "my" before variables, i have not in the past and things seemed to work, however i have seen some scripts that do use it

I will have a look at the XSLT, but i might have found the answer to my problem in another post on here.

just need to work out what to do if the XML field is Blank.

Cheers

Replies are listed 'Best First'.
Re^3: Parse XML into CSV Files
by dHarry (Abbot) on Jul 21, 2009 at 15:57 UTC
    Do i have to use the "my" before variables

    No it's not mandatory, but it often makes sense to do so, i.e. explicitly declare variables that you want to use and give them a specific scope. See perldoc for documentation. Using strict and warnings is also not mandatory but using them in combination with my would for example have given you the information that some of the variables are never used.