A man who was caught with drugs stored in his underpants has been jailed for two-and-a-half years.

Daniel Perkins was arrested in spring 2012 when police raided a house in Queens Crescent, Chippenham.

When the 32-year-old was searched by officers they found he had had five wraps of heroin wedged between his buttocks.

His phone was examined and found to contain numerous text messages relating to the trade in drugs.

Colin Meeke, prosecuting, told an earlier hearing it contained incoming questions like 'Have you got?', 'Will you do for 35?' and 'I need two of each'.

He told Swindon Crown Court that the defendant had initially denied the phone was his, despite it being registered in his name and to his address.

Perkins, from Erith, in east London, admitted possessing class A drugs with intent to supply on April 18, 2012.

The court heard he was travelling from the capital and staying with people in Wiltshire as he sold drugs between January and March 2012.

Chris Smyth, defending, said his client insisted the dealing was 'sporadic' over the three months leading up to his arrest.

At Swindon Crown Court on Friday Judge Douglas Field jailed him for 30 months and ordered he pay a £100 victim surcharge.

Perkins had been due to face sentence a week earlier but could not get to court because he had spent all his benefit money.

Realising he was facing jail, the court was told no one would lend him the bus or train fare as they knew they would not get it back.