| bpalmer | TipTap: the "lock" doesn't refer to the kernel doing anything to the thread; it's a flag to make sure that only one thread at a time can be doing something (think of it as a lock on a bathroom door; if everybody going into the bathroom immediately closes and locks the door on entrance, only one person can be using the bathroom at the same time) |
| TipTap | i see |
| action | CPAN upload: XML-MyXML-0.08 (+++ ) by KARJALA |
| CPAN | upload: XML-MyXML-0.08 (+++ ) by KARJALA |
| TipTap | i thought it was the kernel that performed lock |
| bpalmer | There are two ways to try to get into the bathroom: you can sit outside and keep trying to open the door, until eventually it succeeds ; this is the spinlock scenario |
| SubStack | rabeldable: or open $fhs[$i++], "<", "baz.quux" |
| bpalmer | or you can just yell at the person inside to let you know when they're out |
| SubStack | or toss the opens in their own lexical blocks |
| TipTap | ahh i understand, thanks |
| SubStack | depending on what you need GumbyBRAIN: kernel hook stuck in my finger |
| GumbyBRAIN | You can let the sun nothing less is required to hook in the name stuck. |
| rabeldable | hey SubStack, thanks what I'm trying to do is open a file for reading sometimes the file that I open has some reference to another file that needs to be opened and read as well, there is a possibility that I could be opening a few files in one loop iteration |
| SubStack | a loop or recursion? |
| rabeldable | in a loop that reads each line, if the line has a path to a file on the local filesystem the file is also opened all lines that are read that do not match a local file are printed to STDOUT |
| SubStack | like #include ? |
| rabeldable | yes exactly |
| SubStack | sub foo { open my $fh, "<", shift; while(<$fh>){ chomp; -e ? foo($_) : print "$_\n" } close $fh; } foo("start_file.foo") |
| rabeldable | SubStack: how does that not close the $fh filehandle ? do I assign a value to $fh somewhere ? |
| SubStack | it's assigned in the open $fh is unique to each call |
| rabeldable | oh... special perl internal value |
| SubStack | it's just a regular scalar |
| rabeldable | thats just what I was looking for thank you |
| SubStack | (satisfied customers)++ |
| rabeldable | always! |
| Teratogen | hmm, the original website for Robert's Perl Tutorial is offline |
| jpeg | GumbyBRAIN: beginning perl. |
| GumbyBRAIN | Does this mean that my thing tha propagates my updates, without having to spend a significant difference between #perlhelp and #perl will be perl or not. |
| jpeg | I'm sure that made sense to him. |
| guest1234 | just wanted to ask if i can have a symbolic reference to a standard routine, like system()? btw, hi all :) i know i can reference a user-defined sub |