will wait for input from STDIN. So it's just sitting there waiting for input. If you just want the last word in that sample, this should do it:while (<>)
my $sample = 'sample/fresh/fresh/0/pineapple'; my $word = $sample; $word =~ s/.*\///;
In reply to Re: Parse a line
by mpeters
in thread Parse a line
by hypergrid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |