I have been wondering about the best way to learn playing a new song on guitar. For example, a lot of people try to pick a small part, practice and perfect it and then repeat the procedure for the rest of the song.
Nobody can answer this for you - everyone has a different learning style, and you are going to have to find out what works best for you.
Some people would prefer to be able to bluff their way through a whole song first - improvising approximate versions of riffs or just strumming chords - before picking out sections to refine.
Other people prefer to perfect bar 1 before moving on to bar 2, and so on.
Personally, I've had teachers who make you repeat a riff for a whole lesson, then never actually go on to perform the whole song. That drives me mad. I'd much prefer to play a whole song badly, than learn one riff and do nothing else with it.
Breaking pieces into small sections and practising them until you can play them well is probably the best way of learning a new piece.
However, you'll also need to work on linking these sections together so it doesn't sound too disjointed - you don't want to get too used to stopping at a certain point! To get around this, it's also a good idea to practise the entire piece all the way through slowly after you've got most of the sections right. Eventually you can speed up to get to the normal tempo.