Dahl transferred to a boarding school in England: St. His parents had wanted him to be educated at an English public school and, because of the regular ferry link across the Bristol Channel, this proved to be the nearest. Peter's was unpleasant; he was very homesick and wrote to his mother every week but never revealed his unhappiness to her.
His biographer Donald Sturrock described these violent experiences in Dahl's early life. Dahl said the incident caused him to "have doubts about religion and even about God".
Writing in that same book, Dahl reflected: “All through my school life I was appalled by the fact that masters and senior boys were allowed literally to wound other boys, and sometimes quite severely... I never have got over it.” the caning took place in May 1933, a year after Fisher had left Repton; the headmaster was in fact J. He was never seen as a particularly talented writer in his school years, with one of his English teachers writing in his school report "I have never met anybody who so persistently writes words meaning the exact opposite of what is intended." Dahl would dream of inventing a new chocolate bar that would win the praise of Mr Cadbury himself; this inspired him in writing his third children's book, Charlie and the Chocolate Factory (1964), and to refer to chocolate in other children's books.
He was transported by train to the Royal Navy hospital in Alexandria.
There he fell in and out of love with a nurse, Mary Welland.
He continued to advanced flying training in Iraq, at RAF Habbaniya, 50 miles (80 km) west of Baghdad.
Following six months' training on Hawker Harts, Dahl was commissioned as a pilot officer on 24 August 1940, and was judged ready to join a squadron and face the enemy. 80 Squadron RAF, flying obsolete Gloster Gladiators, the last biplane fighter aircraft used by the RAF.
Throughout his childhood and adolescent years, Dahl spent the majority of his summer holidays with his mother's family in Norway.
He wrote about many happy memories from those visits in Boy: Tales of Childhood, such as when he replaced the tobacco in his half-sister's fiancé's pipe with goat droppings.
Dahl's works for children include James and the Giant Peach, Charlie and the Chocolate Factory, Matilda, The Witches, Fantastic Mr Fox, The BFG, The Twits and George's Marvellous Medicine. Dahl's father had emigrated to the UK from Sarpsborg in Norway, and settled in Cardiff in the 1880s with his first wife, a Frenchwoman named Marie Beaurin-Gresser.
They had two children together, Ellen Marguerite and Louis, before her death in 1907.