1. Use an infinite loop: 
loop {
    # Do something 
}

2. Make a recursive call: 
sub infinite_loop {
    # Do something 
    infinite_loop();
}

3. Use an infinite while loop: 
while (True) {
    # Do something 
}

Add a code snippet to your website: www.paste.org