Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: C vs. Perl

by Abigail-II (Bishop)
on Oct 22, 2003 at 20:32 UTC ( #301356=note: print w/replies, xml ) Need Help??

in reply to Re: Re: C vs. Perl
in thread C vs. Perl

You can't do anything more easily in C as opposed to Perl. That has never been a question.
Oh, sure you can. Ever tried locking *part* of a file? Quite a standard operation, but I don't think it's even documented how you do it in Perl.


Replies are listed 'Best First'.
Re: Re: C vs. Perl
by dug (Chaplain) on Oct 22, 2003 at 22:32 UTC
    I haven't found it in the core documentation, but there is a recipe in "Perl Cookbook" (recipe 7.25 in the second edition) called "lockarea" that dooes just this. It's not very portable (and isn't easier than its C counterpart), but works on Berkley-ish systems.

    The Cookbook says, "This program, while included with Perl...". I didn't find it in the latest sources when looking for "lockarea". Does anyone else know where it is in the source, or when it was depricated if it's not there?

    -- dug

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://301356]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2023-06-05 06:45 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (22 votes). Check out past polls.