Beer in my secondary fermenter tastes a little like liquorice. Why could this be?
I agree that some more information is needed to see if this licorice flavor is actually to be expected in your beer style you brewed, but to offer an initial response to what the possible cause was, phenols from yeast production could cause anise (licorice) flavors. These can be produced when fermentation temperatures have gotten a little warmer than they should be. Reducing fermentation temps with a temperature controlled ferm chamber or a swamp cooler could help you keep off-flavors from yeast down.
Yes, would need to know the recipe. But Star Anise will add a liquorice taste.