If I recall correctly, Gary Willougby's book referred to above was updated for a fairly early version of PB, 4.4 I think.
Here is the original forum thread about the book, you may need to check the last page for a download of the source code examples as the original links are out of date. (Edit: scratch that last, the source code referred to is for John's book (below) not Gary's)
http://www.purebasic.fr/english/viewtop ... 14&t=37059
Alternatives are bluenzl's Purebasic Survival Guide, an online tutorial style reference based on his own experiences learning PB. Also a bit out of date now, but more up to date with 5.11 being the last major updates. He also has a downloadable version if you prefer to read it offline.
http://bluez.home.xs4all.nl/purebasic/
Lastly, there is the book Programming 2D Scrolling Games by John Logsdon. It used to be a purchasable book but went out of print. It was then available in print from Lulu (print on demand) but is not cheap.
This is the original forum thread about that book.
http://www.purebasic.fr/english/viewtop ... 14&t=52033
The good news is that the author has now released the book in PDF form as he no longer can maintain it. It is also not completely up to date, originally being written for PB 4.? but the PDF version was updated for 4.6 and 5.0
http://www.purebasic.fr/english/viewtop ... 14&t=58232
Though the focus is on 2D game creation it is a good book covering the basics of programming with PB as well.
(@Tenaja, maybe this is the book you were thinking of?)
PS. Personally I am not in favour of loading source code examples from a file. You will learn more by typing them in yourself

'I listened and forgot, I saw and remembered, I did and understood'
Can't remember who originally said that though!