Currently we do not have a sample in perl code, but please go through the following graph APIs to create an event or a team automatically.
- Create Team - https://learn.microsoft.com/en-us/graph/api/team-post?view=graph-rest-1.0&tabs=http
- Create event - https://learn.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-1.0&tabs=http
You can also use the deeplink to schedule a meeting. Please note that this is still in developer preview.
Thanks,
Meghana
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.