M
Mike
I like that in python you can say:
if __name__ == "__main__"
tests
To know if you are running a $module.py file stand alone or if the
$module.py file has been included into a different, super python
script. Is there a similar feature in PERL? I've been using PERL
for a long time and I don't remember anything like this. I can think
of a way to emulate the feature, but I prefer to have a built in
instead of an emulation hack.
Mike
if __name__ == "__main__"
tests
To know if you are running a $module.py file stand alone or if the
$module.py file has been included into a different, super python
script. Is there a similar feature in PERL? I've been using PERL
for a long time and I don't remember anything like this. I can think
of a way to emulate the feature, but I prefer to have a built in
instead of an emulation hack.
Mike