#!/usr/bin/perl -w use strict; my $line = "this-is-aline-one-two"; foreach (split (/-/,$line)) { print "$_\n"; } __END__ PRINTS: this is aline one two
In reply to Re: extracting names between symbols
by Marshall
in thread extracting names between symbols
by aka_bk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |