This all works beautifully using the @ARG = '05/01/2023'. But when I try to insert my $string which is the supplied date I need to work from, it doesn't work. In practice this will be a part of a web site and manually entering a date won't be available. The script will provide a date, the script must do the rest.