Hi,
I am trying to run some lines of code, if a scalar is an float, and not if it is an integer.
Currently, I am trying to do this:
if ( $pages =~ /./ ) {
# do something here
}
But this does not work, any suggestions for a fix?
Thanks in advance!
Best Regards,
Jollekox
I am trying to run some lines of code, if a scalar is an float, and not if it is an integer.
Currently, I am trying to do this:
if ( $pages =~ /./ ) {
# do something here
}
But this does not work, any suggestions for a fix?
Thanks in advance!
Best Regards,
Jollekox