In the expression "if ($v =~ /\btest\b/)", the part in
between the /'s is a regular expression.
What does the /'s represent?? I dont see it anywhere?
Thanks for the detailed explanation.
Now I just need to find how to execute this?
sub LastDayOfMonth {
my($year, $month) = @_;
# assign parameters to variables
# @_ contains the list of parameters passed to thesubroutine
# they are assigned to $year and $month,respectively...
I tried this script and cant get it to work. I executed it and put in month and year such as March,2001 and keep getting output of 31 on every input. Also can someone please explain how the script is working such as the 'my $date = .........' and the modules part. Thanks
sub...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.