Butterfly caterpillars have specific host plants. They will starve to death before they will eat anything else. Black Swallowtails will eat Rue, Fennel, Dill, Parsley, Queen Anne's Lace and other members of the Apiaceae family. And they make a sling, not a J when they pupate.