That's because my code uses shift to get the first argument to the subroutine. If you take it out of the subroutine, you'll need to replace that shift with the variable that contains the value you want to split.
Aaron B.
Available for small or large Perl jobs; see my home node.
In reply to Re^3: Inserting domain name into Snort rule
by aaron_baugher
in thread Inserting domain name into Snort rule
by miniperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |