Bill: That works in Unix, but I assume that Phil wans something for win32.
Phil: The problem is that with your version, you are passing the glob
function to the shell, which doesn't understand it, instead of passing it to
perl to evaluate. Try the following:
perl -e "foreach (glob('*.txt')) {p
I cannot get the expected result from code similar to the following:
my @source = ();
@($source[0]){"host","port","dir"} = [($pSource =~ m/(\S+)(-\S+)?(:.*)?/)];
My intention is that: First, the match expression returns a array of three
values, which are to be assigned to three hash elements. T
It seems like there should be a simpler way to count the number of
occurrences of a regular expression. For example:
@temp= / Current Value: /g;
$count=@temp;
I don't really care about @temp, I only want to get the value for $count.
So how can I do this without creating a (named) temporary varia