I do not understand how and what does the ~ do as it just seems to remove the ./ off the front off the script name.my $this_proc = $0 =~ /^.+\/(.+)$/ ? $1 : $0;
Thanks in advance
Janitored by Arunbear - added code tags, as per Monastery guidelines
In reply to Regular expression problemette by spaceship
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |