;, but rather as 'erik=test_cookie'. So you should be
testing:
if ($cookies =~ /erik=/) {
---Larry
++
| Larry Coffin, G.P.H. Watertown, MA |
| http://www.PointInfinity.com/lcoffin/[EMAIL PROTECTED] |
+-
don't need to be, you should be all set.
---Larry
+----+
| Larry Coffin, G.P.H. Watertown, MA |
| http://www.PointInfinity.
the next line
}
$last = $line;
}
That should work unless you want to make sure you never print the
same line twice or if you want more than one line of context.
---Larry
+--------+
| Larry
if ($a == 20) {print "a is equal to 20.\n";}
---Larry
+--------+
| Larry Coffin, G.P.H. Watertown, MA |
| http://w
ck easy way to do it given @keys (array of keys) and @values
(array of values):
@hash{@keys} = @values;
This will set up the key/value pairs in %hash.
---Larry
+--------+
| Larry Coffin, G.P.H.
ement
and not the data structures involved)
---Larry
+--------+
| Larry Coffin, G.P.H. Watertown, MA |
| http://www.PointInf
may well do). This comes at the
expense of having to save the converted filename, so if for some reason you
are tight on memory (i.e. 1000s of filenames) and have lots of CPU cycles
to spare, then you might not want to save it and do the case conversion in
the s
, 0, getpriority(0,0) + 4;
---Larry
+--------+
| Larry Coffin, G.P.H. Watertown, MA |
| http://www.PointInfinity.com/lcoffin/[EMAIL PROTECTED] |
+---
ements are executed conditionally. And I agree with your
earlier letter that it is better to break those into two statements and
enclose them within an 'if' block -- much cleaner that way.
Thanks for clearing that up!
---Larry
+---------
is getting tossed and
the 'next if (...)' is not dependent on the print statement.
---Larry
+--------+
| Larry Coffin, G.P.H. Watertown, MA |
| http://www.PointInfinity.com/lcoffin/
27; before using the package names:
foreach my $pkg (@pkg){
chomp $pkg;
my $dir1 = $pkg;
...
You might also want to change your die statement to:
or die "cannot change to \"$dir3\": $!"
to get more informative error messages.
11 matches
Mail list logo