Result:
found more than 757 distributions - search limited to the first 2001 files matching your query ( run in 2.772 )


Dwimmer

 view release on metacpan or  search on metacpan

share/public/css/ui-lightness/jquery-ui-1.8.16.custom.css  view on Meta::CPAN

.ui-icon-suitcase { background-position: -112px -96px; }
.ui-icon-comment { background-position: -128px -96px; }
.ui-icon-person { background-position: -144px -96px; }
.ui-icon-print { background-position: -160px -96px; }
.ui-icon-trash { background-position: -176px -96px; }
.ui-icon-locked { background-position: -192px -96px; }
.ui-icon-unlocked { background-position: -208px -96px; }
.ui-icon-bookmark { background-position: -224px -96px; }
.ui-icon-tag { background-position: -240px -96px; }
.ui-icon-home { background-position: 0 -112px; }
.ui-icon-flag { background-position: -16px -112px; }
.ui-icon-calendar { background-position: -32px -112px; }

 view all matches for this distribution


DynGig-Util

 view release on metacpan or  search on metacpan

lib/DynGig/Util/EZDB.pm  view on Meta::CPAN


    while ( $sth )
    {   
        $result = eval { $sth->execute( @_ ) };
        last unless $@;
        croak $@ if $@ !~ /locked/;
    }

    return $result, $sth;
}

 view all matches for this distribution


E2-Interface

 view release on metacpan or  search on metacpan

E2Node.pm  view on Meta::CPAN


sub new;
sub clear;

sub has_mine;
sub is_locked;

sub list_writeups;
sub list_softlinks;
sub list_firmlinks;
sub list_sametitles;

E2Node.pm  view on Meta::CPAN

	warn "E2::E2Node::clear\n"	if $DEBUG > 1;

	@{ $self->{writeups} } = ();	 # Array to hold writeups in currently
					 # loaded node. See E2::Writeup.
	
	$self->{locked}		= undef; # soft locked

	$self->{next}		= 0;	 # Next writeup to return
	$self->{mine}		= undef; # My writeup in this node.

	@{ $self->{firmlinks} }	= ();	 # List of firmlinks

E2Node.pm  view on Meta::CPAN

	}

	return 0;
}

sub is_locked {
	my $self = shift	or croak "Usage: is_locked E2E2NODE";

	if( !$self->node_id )	{ return undef; }

	if( $self->{locked} )	{ return 1; }
	else			{ return 0; }
}

sub list_softlinks {
	my $self = shift	or croak "Usage: list_softlinks E2NODE";

E2Node.pm  view on Meta::CPAN


	return (

		'node/nodelock' => sub {
			(my $a, my $b) = @_;
			$self->{locked} = $b->text;
			if( $self->{locked} eq "" ) {
				$self->{locked} = undef;
			}
		},
		'node/writeup' => sub {
			(my $a, my $b) = @_;

E2Node.pm  view on Meta::CPAN


C<clear> clears all the information currently stored in $node. 

=item $node-E<gt>has_mine

=item $node-E<gt>is_locked

Boolean: "Does this node have a writeup by me in it?"; "Is this node softlocked?"

C<is_locked> is actually a string value, if true, consisting of the text of the softlock.

=item $node-E<gt>list_softlinks

=item $node-E<gt>list_firmlinks

 view all matches for this distribution


EFL

 view release on metacpan or  search on metacpan

t/test_notify.pm  view on Meta::CPAN

   elm_box_horizontal_set($bx, 1);
   evas_object_show($bx);

   $lb = elm_label_add($win);
   elm_label_label_set($lb, "Bottom position. This notify use a timeout of 5 sec.<br>" .
	 "<b>The events outside the window are blocked.</b>");
   elm_box_pack_end($bx, $lb);
   evas_object_show($lb);

   $bt = elm_button_add($win);
   elm_button_label_set($bt, "Close");

 view all matches for this distribution


EMDIS-ECS

 view release on metacpan or  search on metacpan

lib/EMDIS/ECS.pm  view on Meta::CPAN

            "HUB_RCV ($hub_rcv) do not match"
            unless $node_id eq $hub_rcv;
    }

    # look up specified node in node_tbl
    my $was_locked = $node_tbl->LOCK;
    if(not $was_locked) {
        $node_tbl->lock()     # lock node_tbl if needed
            or return "EMDIS::ECS::send_ecs_message(): unable to lock node_tbl: " .
                $node_tbl->ERROR;
    }
    my $node = $node_tbl->read($node_id);
    if(not $node) {
        $node_tbl->unlock() unless $was_locked;  # unlock node_tbl if needed
        return "EMDIS::ECS::send_ecs_message(): node not found: " . $node_id;
    }
    if(not $node->{addr}) {
        $node_tbl->unlock() unless $was_locked;  # unlock node_tbl if needed
        return "EMDIS::ECS::send_ecs_message(): addr not defined for node: $node_id";
    }
    if($seq_num =~ /auto/i) {
        # automatically get next sequence number
        $node->{out_seq}++;

lib/EMDIS/ECS.pm  view on Meta::CPAN

        $node->{last_out} = time();
        $err = $node_tbl->ERROR
            unless $node_tbl->write($node_id, $node);
    }
    $node_tbl->unlock()  # unlock node_tbl
        unless $was_locked;

    return $err;
}

# ----------------------------------------------------------------------

 view all matches for this distribution


EOL

 view release on metacpan or  search on metacpan

t/dracula.DOS.txt  view on Meta::CPAN

o'clock when I had it, I looked about for something to read, for I did
not like to go about the castle until I had asked the Count's
permission.  There was absolutely nothing in the room, book,
newspaper, or even writing materials, so I opened another door in the
room and found a sort of library.  The door opposite mine I tried, but
found locked.

In the library I found, to my great delight, a vast number of English
books, whole shelves full of them, and bound volumes of magazines and
newspapers.  A table in the centre was littered with English magazines
and newspapers, though none of them were of very recent date.  The

t/dracula.DOS.txt  view on Meta::CPAN

Of course I said all I could about being willing, and asked if I might
come into that room when I chose.  He answered, "Yes, certainly," and
added.

"You may go anywhere you wish in the castle, except where the doors
are locked, where of course you will not wish to go.  There is reason
that all things are as they are, and did you see with my eyes and know
with my knowledge, you would perhaps better understand."  I said I was
sure of this, and then he went on.

"We are in Transylvania, and Transylvania is not England.  Our ways

t/dracula.DOS.txt  view on Meta::CPAN

is a sea of green tree tops, with occasionally a deep rift where there
is a chasm.  Here and there are silver threads where the rivers wind
in deep gorges through the forests.

But I am not in heart to describe beauty, for when I had seen the view
I explored further.  Doors, doors, doors everywhere, and all locked
and bolted.  In no place save from the windows in the castle walls is
there an available exit.  The castle is a veritable prison, and I am a
prisoner!


t/dracula.DOS.txt  view on Meta::CPAN

flood swept eastward, the Szekelys were claimed as kindred by the
victorious Magyars, and to us for centuries was trusted the guarding
of the frontier of Turkeyland.  Aye, and more than that, endless duty
of the frontier guard, for as the Turks say, 'water sleeps, and the
enemy is sleepless.'  Who more gladly than we throughout the Four
Nations received the 'bloody sword,' or at its warlike call flocked
quicker to the standard of the King?  When was redeemed that great
shame of my nation, the shame of Cassova, when the flags of the
Wallach and the Magyar went down beneath the Crescent?  Who was it but
one of my own race who as Voivode crossed the Danube and beat the Turk
on his own ground?  This was a Dracula indeed!  Woe was it that his

t/dracula.DOS.txt  view on Meta::CPAN

his head had disappeared, I leaned out to try and see more, but
without avail.  The distance was too great to allow a proper angle of
sight.  I knew he had left the castle now, and thought to use the
opportunity to explore more than I had dared to do as yet.  I went
back to the room, and taking a lamp, tried all the doors.  They were
all locked, as I had expected, and the locks were comparatively new.
But I went down the stone stairs to the hall where I had entered
originally.  I found I could pull back the bolts easily enough and
unhook the great chains.  But the door was locked, and the key was
gone!  That key must be in the Count's room.  I must watch should his
door be unlocked, so that I may get it and escape.  I went on to make
a thorough examination of the various stairs and passages, and to try
the doors that opened from them.  One or two small rooms near the hall
were open, but there was nothing to see in them except old furniture,
dusty with age and moth-eaten.  At last, however, I found one door at
the top of the stairway which, though it seemed locked, gave a little
under pressure.  I tried it harder, and found that it was not really
locked, but that the resistance came from the fact that the hinges had
fallen somewhat, and the heavy door rested on the floor.  Here was an
opportunity which I might not have again, so I exerted myself, and
with many efforts forced it back so that I could enter.  I was now in
a wing of the castle further to the right than the rooms I knew and a
storey lower down.  From the windows I could see that the suite of

t/dracula.DOS.txt  view on Meta::CPAN

it again?"  He held out the letter to me, and with a courteous bow
handed me a clean envelope.

I could only redirect it and hand it to him in silence.  When he went
out of the room I could hear the key turn softly.  A minute later I
went over and tried it, and the door was locked.

When, an hour or two after, the Count came quietly into the room, his
coming awakened me, for I had gone to sleep on the sofa.  He was very
courteous and very cheery in his manner, and seeing that I had been
sleeping, he said, "So, my friend, you are tired?  Get to bed.  There

t/dracula.DOS.txt  view on Meta::CPAN

spitting on it for luck, lazily went each to his horse's head.
Shortly afterwards, I heard the crackling of their whips die away in
the distance.


24 June.--Last night the Count left me early, and locked himself into
his own room.  As soon as I dared I ran up the winding stair, and
looked out of the window, which opened South.  I thought I would watch
for the Count, for there is something going on.  The Szgany are
quartered somewhere in the castle and are doing work of some kind.  I
know it, for now and then, I hear a far-away muffled sound as of

t/dracula.DOS.txt  view on Meta::CPAN

moonlight, and where the lamp was burning brightly.

When a couple of hours had passed I heard something stirring in the
Count's room, something like a sharp wail quickly suppressed.  And
then there was silence, deep, awful silence, which chilled me.  With a
beating heart, I tried the door, but I was locked in my prison, and
could do nothing.  I sat down and simply cried.

As I sat I heard a sound in the courtyard without, the agonised cry of
a woman.  I rushed to the window, and throwing it up, peered between
the bars.

t/dracula.DOS.txt  view on Meta::CPAN


It has always been at night-time that I have been molested or
threatened, or in some way in danger or in fear.  I have not yet seen
the Count in the daylight.  Can it be that he sleeps when others wake,
that he may be awake whilst they sleep?  If I could only get into his
room!  But there is no possible way.  The door is always locked, no
way for me.

Yes, there is a way, if one dares to take it.  Where his body has gone
why may not another body go?  I have seen him myself crawl from his
window.  Why should not I imitate him, and go in by his window?  The

t/dracula.DOS.txt  view on Meta::CPAN

great orchestra seems to leap under the baton of the conductor.  After
a pause of a moment, he proceeded, in his stately way, to the door,
drew back the ponderous bolts, unhooked the heavy chains, and began to
draw it open.

To my intense astonishment I saw that it was unlocked.  Suspiciously,
I looked all round, but could see no key of any kind.

As the door began to open, the howling of the wolves without grew
louder and angrier.  Their red jaws, with champing teeth, and their
blunt-clawed feet as they leaped, came in through the opening door.  I

t/dracula.DOS.txt  view on Meta::CPAN

knees, for I determined that if Death came he should find me ready.

At last I felt that subtle change in the air, and knew that the
morning had come.  Then came the welcome cockcrow, and I felt that I
was safe.  With a glad heart, I opened the door and ran down the hall.
I had seen that the door was unlocked, and now escape was before me.
With hands that trembled with eagerness, I unhooked the chains and
threw back the massive bolts.

But the door would not move.  Despair seized me.  I pulled and pulled
at the door, and shook it till, massive as it was, it rattled in its
casement.  I could see the bolt shot.  It had been locked after I left
the Count.

Then a wild desire took me to obtain the key at any risk, and I
determined then and there to scale the wall again, and gain the
Count's room.  He might kill me, but death now seemed the happier

t/dracula.DOS.txt  view on Meta::CPAN

contained the vile body, I ran from the place and gained the Count's
room, determined to rush out at the moment the door should be opened.
With strained ears, I listened, and heard downstairs the grinding of
the key in the great lock and the falling back of the heavy door.
There must have been some other means of entry, or some one had a key
for one of the locked doors.

Then there came the sound of many feet tramping and dying away in some
passage which sent up a clanging echo.  I turned to run down again
towards the vault, where I might find the new entrance, but at the
moment there seemed to come a violent puff of wind, and the door to

t/dracula.DOS.txt  view on Meta::CPAN

is his writing.  There is no mistake of that.

Lucy has not walked much in her sleep the last week, but there is an
odd concentration about her which I do not understand, even in her
sleep she seems to be watching me.  She tries the door, and finding it
locked, goes about the room searching for the key.


6 August.--Another three days, and no news.  This suspense is getting
dreadful.  If I only knew where to write to or where to go to, I
should feel easier.  But no one has heard a word of Jonathan since

t/dracula.DOS.txt  view on Meta::CPAN

agonizing experience.  I fell asleep as soon as I had closed my diary.
. . .  Suddenly I became broad awake, and sat up, with a horrible sense
of fear upon me, and of some feeling of emptiness around me.  The room
was dark, so I could not see Lucy's bed.  I stole across and felt for
her.  The bed was empty.  I lit a match and found that she was not in
the room.  The door was shut, but not locked, as I had left it.  I feared
to wake her mother, who has been more than usually ill lately, so threw
on some clothes and got ready to look for her.  As I was leaving the
room it struck me that the clothes she wore might give me some clue to
her dreaming intention.  Dressing-gown would mean house, dress outside.
Dressing-gown and dress were both in their places.  "Thank God," I said

t/dracula.DOS.txt  view on Meta::CPAN


I hesitated at first, to promise, but on thinking of the state of her
mother's health, and how the knowledge of such a thing would fret her,
and think too, of how such a story might become distorted, nay,
infallibly would, in case it should leak out, I thought it wiser to do
so.  I hope I did right.  I have locked the door, and the key is tied
to my wrist, so perhaps I shall not be again disturbed.  Lucy is
sleeping soundly.  The reflex of the dawn is high and far over the
sea . . .


t/dracula.DOS.txt  view on Meta::CPAN

get a chill, so I ran upstairs, but as I came into the room she was
moving back to her bed, fast asleep, and breathing heavily.  She was
holding her hand to her throat, as though to protect if from the cold.

I did not wake her, but tucked her up warmly.  I have taken care that
the door is locked and the window securely fastened.

She looks so sweet as she sleeps, but she is paler than is her wont,
and there is a drawn, haggard look under her eyes which I do not like.
I fear she is fretting about something.  I wish I could find out what it
is.

t/dracula.DOS.txt  view on Meta::CPAN

bed.  This time he did not start as he looked on the poor face with
the same awful, waxen pallor as before.  He wore a look of stern
sadness and infinite pity.

"As I expected," he murmured, with that hissing inspiration of his
which meant so much.  Without a word he went and locked the door, and
then began to set out on the little table the instruments for yet
another operation of transfusion of blood.  I had long ago recognized
the necessity, and begun to take off my coat, but he stopped me with a
warning hand.  "No!" he said.  "Today you must operate.  I shall
provide.  You are weakened already."  As he spoke he took off his coat

t/dracula.DOS.txt  view on Meta::CPAN

cut and full of broken glass.  'E's been a-gettin' over
some bloomin' wall or other.  It's a shyme that people are
allowed to top their walls with broken bottles.  This 'ere's
what comes of it.  Come along, Bersicker."

He took the wolf and locked him up in a cage, with a piece
of meat that satisfied, in quantity at any rate, the elementary
conditions of the fatted calf, and went off to report.

I came off too, to report the only exclusive information
that is given today regarding the strange escapade at the

t/dracula.DOS.txt  view on Meta::CPAN

seconds of delay, might mean hours of danger to Lucy, if she had had
again one of those frightful relapses, and I went round the house to
try if I could find by chance an entry anywhere.

I could find no means of ingress.  Every window and door was fastened
and locked, and I returned baffled to the porch.  As I did so, I heard
the rapid pit-pat of a swiftly driven horse's feet.  They stopped at
the gate, and a few seconds later I met Van Helsing running up the
avenue.  When he saw me, he gasped out, "Then it was you, and just
arrived.  How is she?  Are we too late?  Did you not get my telegram?"

t/dracula.DOS.txt  view on Meta::CPAN

Come with me."

He put on the coffin lid again, gathered up all his things and placed
them in the bag, blew out the light, and placed the candle also in the
bag.  We opened the door, and went out.  Behind us he closed the door
and locked it.  He handed me the key, saying, "Will you keep it?  You
had better be assured."

I laughed, it was not a very cheerful laugh, I am bound to say, as I
motioned him to keep it.  "A key is nothing," I said, "there are many
duplicates, and anyhow it is not difficult to pick a lock of this

t/dracula.DOS.txt  view on Meta::CPAN

Hotel at ten of the clock.  I shall send for Arthur to come too, and
also that so fine young man of America that gave his blood.  Later we
shall all have work to do.  I come with you so far as Piccadilly and
there dine, for I must be back here before the sun set."

So we locked the tomb and came away, and got over the wall of the
churchyard, which was not much of a task, and drove back to
Piccadilly.



t/dracula.DOS.txt  view on Meta::CPAN

across the sky.  We all kept somehow close together, with Van Helsing
slightly in front as he led the way.  When we had come close to the
tomb I looked well at Arthur, for I feared the proximity to a place
laden with so sorrowful a memory would upset him, but he bore himself
well.  I took it that the very mystery of the proceeding was in some
way a counteractant to his grief.  The Professor unlocked the door,
and seeing a natural hesitation amongst us for various reasons, solved
the difficulty by entering first himself.  The rest of us followed,
and he closed the door.  He then lit a dark lantern and pointed to a
coffin.  Arthur stepped forward hesitatingly.  Van Helsing said to me,
"You were with me here yesterday.  Was the body of Miss Lucy in that

t/dracula.DOS.txt  view on Meta::CPAN

notice that by common consent we had all put on black clothes.  Of
course, Arthur wore black, for he was in deep mourning, but the rest
of us wore it by instinct.  We got to the graveyard by half-past one,
and strolled about, keeping out of official observation, so that when
the gravediggers had completed their task and the sexton, under the
belief that every one had gone, had locked the gate, we had the place
all to ourselves.  Van Helsing, instead of his little black bag, had
with him a long leather one, something like a cricketing bag.  It was
manifestly of fair weight.

When we were alone and had heard the last of the footsteps die out up
the road, we silently, and as if by ordered intention, followed the
Professor to the tomb.  He unlocked the door, and we entered, closing
it behind us.  Then he took from his bag the lantern, which he lit,
and also two wax candles, which, when lighted, he stuck by melting
their own ends, on other coffins, so that they might give light
sufficient to work by.  When he again lifted the lid off Lucy's coffin
we all looked, Arthur trembling like an aspen, and saw that the corpse

t/dracula.DOS.txt  view on Meta::CPAN

Arthur bent and kissed her, and then we sent him and Quincey out of the
tomb.  The Professor and I sawed the top off the stake, leaving the
point of it in the body.  Then we cut off the head and filled the
mouth with garlic.  We soldered up the leaden coffin, screwed on the
coffin lid, and gathering up our belongings, came away.  When the
Professor locked the door he gave the key to Arthur.

Outside the air was sweet, the sun shone, and the birds sang, and it
seemed as if all nature were tuned to a different pitch.  There was
gladness and mirth and peace everywhere, for we were at rest ourselves
on one account, and we were glad, though it was with a tempered joy.

t/dracula.DOS.txt  view on Meta::CPAN

of the chapel door, or the relief which we experienced by finding
ourselves in the open I know not, but most certainly the shadow of
dread seemed to slip from us like a robe, and the occasion of our
coming lost something of its grim significance, though we did not
slacken a whit in our resolution.  We closed the outer door and barred
and locked it, and bringing the dogs with us, began our search of the
house.  We found nothing throughout except dust in extraordinary
proportions, and all untouched save for my own footsteps when I had
made my first visit.  Never once did the dogs exhibit any symptom of
uneasiness, and even when we returned to the chapel they frisked about
as though they had been rabbit hunting in a summer wood.

The morning was quickening in the east when we emerged from the front.
Dr. Van Helsing had taken the key of the hall door from the bunch, and
locked the door in orthodox fashion, putting the key into his pocket
when he had done.

"So far," he said, "our night has been eminently successful.  No harm
has come to us such as I feared might be and yet we have ascertained
how many boxes are missing.  More than all do I rejoice that this, our

t/dracula.DOS.txt  view on Meta::CPAN

know if rage or terror predominated in my own heart.

Outside the Harkers' door we paused.  Art and Quincey held back, and
the latter said, "Should we disturb her?"

"We must," said Van Helsing grimly.  "If the door be locked, I shall
break it in."

"May it not frighten her terribly?  It is unusual to break into a
lady's room!"

t/dracula.DOS.txt  view on Meta::CPAN


The poor dear lady shivered, and I could see the tension of her nerves
as she clasped her husband closer to her and bent her head lower and
lower still on his breast.  Then she raised her head proudly, and held
out one hand to Van Helsing who took it in his, and after stooping and
kissing it reverently, held it fast.  The other hand was locked in
that of her husband, who held his other arm thrown round her
protectingly.  After a pause in which she was evidently ordering her
thoughts, she began.

"I took the sleeping draught which you had so kindly given me, but for

 view all matches for this distribution


EV-Hiredis

 view release on metacpan or  search on metacpan

deps/hiredis/test.c  view on Meta::CPAN

        test_cond(s > 0 && reply == NULL && c->err == REDIS_ERR_TIMEOUT &&
                  strcmp(c->errstr, "recv timeout") == 0);
#endif
        freeReplyObject(reply);

        // wait for the DEBUG SLEEP to complete so that Redis server is unblocked for the following tests
        millisleep(3000);
    } else {
        test_skipped();
    }

 view all matches for this distribution


EV-Loop-Async

 view release on metacpan or  search on metacpan

Async.pm  view on Meta::CPAN

  
  my $loop = EV::Loop::Async::default;
  my $timer;
  my $flag;
  
  # create a watcher, but make sure the loop is locked
  {
     $loop->scope_lock; # lock the loop structures
     $timer = $loop->timer (5, 1, sub { $flag = 1 });
     $loop->notify; # tell loop to take note of the timer
  }

Async.pm  view on Meta::CPAN


When in doubt, lock. Do not start or stop a watcher, do not create a
watcher (unless with the C<_ns> methods) and do not DESTROY an active
watcher without locking either.

Any other event loop modifications need to be done while locked as
well. So when in doubt, lock (best using C<scope_lock>).

=item Why explicit locking?

Because I was too lazy to wrap everything and there are probably only a

Async.pm  view on Meta::CPAN

interrupt:

   {
      $EV::Loop::Async::INTERRUPT->scope_block;
      # no default loop callbacks will be executed here.
      # the loop will not be locked, however.
   }

Example: embed the default EV::Async::Loop loop into the default L<EV>
loop (note that it could be any other event loop as well).

Async.pm  view on Meta::CPAN


=item 4. runs C<< $loop->run >> in that thread.

=back

The resulting loop will be running and unlocked when it is returned.

Example: create a new loop, block it's interrupt object and embed
it into the foreground L<AnyEvent> event loop. This basically runs the
C<EV::Loop::Async> loop in a synchronous way inside another loop.

 view all matches for this distribution


EV

 view release on metacpan or  search on metacpan

libev/ev.pod  view on Meta::CPAN

you actually want to know. Also interesting is the combination of
C<ev_now_update> and C<ev_now>.

=item ev_sleep (ev_tstamp interval)

Sleep for the given interval: The current thread will be blocked
until either it is interrupted or the given time interval has
passed (approximately - it might return a bit earlier even if not
interrupted). Returns immediately if C<< interval <= 0 >>.

Basically this is a sub-second-resolution C<sleep ()>.

libev/ev.pod  view on Meta::CPAN

example) that can't properly initialise their signal masks.

=item C<EVFLAG_NOSIGMASK>

When this flag is specified, then libev will avoid to modify the signal
mask. Specifically, this means you have to make sure signals are unblocked
when you want to receive them.

This behaviour is useful when you want to do your own signal handling, or
want to handle signals only in specific threads and want to avoid libev
unblocking the signals.

libev/ev.pod  view on Meta::CPAN

   ev_idle_init (&idle, idle_cb);
   ev_io_init (&io, io_cb, STDIN_FILENO, EV_READ);
   ev_io_start (EV_DEFAULT_ &io);

In the "real" world, it might also be beneficial to start a timer, so that
low-priority connections can not be locked out forever under load. This
enables your program to keep a lower latency for important connections
during short periods of high load, while not completely locking out less
important ones.


libev/ev.pod  view on Meta::CPAN

see C<EVFLAG_NOSIGMASK>).

While this does not matter for the signal disposition (libev never
sets signals to C<SIG_IGN>, so handlers will be reset to C<SIG_DFL> on
C<execve>), this matters for the signal mask: many programs do not expect
certain signals to be blocked.

This means that before calling C<exec> (from the child) you should reset
the signal mask to whatever "default" you expect (all clear is a good
choice usually).

The simplest way to ensure that the signal mask is reset in the child is
to install a fork handler with C<pthread_atfork> that resets it. That will
catch fork calls done by libraries (such as the libc) as well.

In current versions of libev, the signal will not be blocked indefinitely
unless you use the C<signalfd> API (C<EV_SIGNALFD>). While this reduces
the window of opportunity for problems, it will not go away, as libev
I<has> to modify the signal mask, at least temporarily.

So I can't stress this enough: I<If you do not reset your signal mask when

libev/ev.pod  view on Meta::CPAN

compressed into a single callback invocation (another way to look at
this is that C<ev_async> watchers are level-triggered: they are set on
C<ev_async_send>, reset when the event loop detects that).

This call incurs the overhead of at most one extra system call per event
loop iteration, if the event loop is blocked, and no syscall at all if
the event loop (or your program) is processing events. That means that
repeated calls are basically free (there is no need to avoid calls for
performance reasons) and that the overhead becomes smaller (typically
zero) under load.

libev/ev.pod  view on Meta::CPAN

invoking C<ev_run>.

This brings the problem of exiting - a callback might want to finish the
main C<ev_run> call, but not the nested one (e.g. user clicked "Quit", but
a modal "Are you sure?" dialog is still waiting), or just the nested one
and not the main one (e.g. user clocked "Ok" in a modal dialog), or some
other combination: In these cases, a simple C<ev_break> will not work.

The solution is to maintain "break this loop" variable for each C<ev_run>
invocation, and use a loop around C<ev_run> until the condition is
triggered, using C<EVRUN_ONCE>:

libev/ev.pod  view on Meta::CPAN


=item Processing signals: O(max_signal_number)

Sending involves a system call I<iff> there were no other C<ev_async_send>
calls in the current loop iteration and the loop is currently
blocked. Checking for async and signal events involves iterating over all
running async watchers or all signal numbers.

=back


 view all matches for this distribution


EdgeExpressDB

 view release on metacpan or  search on metacpan

www/edgeexpress/jscript/SpryAssets/SpryValidationTextField.js  view on Meta::CPAN


Spry.Widget.ValidationTextField.prototype.init = function(element, options)
{
	this.element = this.getElement(element);
	this.errors = 0;
	this.flags = {locked: false};
	this.options = {};
	this.event_handlers = [];

	this.validClass = "textfieldValidState";
	this.focusClass = "textfieldFocusState";

www/edgeexpress/jscript/SpryAssets/SpryValidationTextField.js  view on Meta::CPAN

Spry.Widget.ValidationTextField.addLoadListener(function(){
	Spry.Widget.Utils.addEventListener(window, "unload", Spry.Widget.Form.destroyAll, false);
});

Spry.Widget.ValidationTextField.prototype.setValue = function(newValue) {
	this.flags.locked = true;
	this.input.value = newValue;
	this.flags.locked = false;
	this.oldValue = newValue;
	if (!Spry.is.ie) {
		this.onChange();
	}
};

www/edgeexpress/jscript/SpryAssets/SpryValidationTextField.js  view on Meta::CPAN


Spry.Widget.ValidationTextField.prototype.doValidations = function(testValue, revertValue)
{
	if (this.isDisabled()) return false;

	if (this.flags.locked) {
		return false;
	}

	if (testValue.length == 0 && !this.isRequired) {
		this.errors = 0;
		return false;
	}
	this.flags.locked = true;

	var mustRevert = false;
	var continueValidations = true;
	if (!this.options.isRequired && testValue.length == 0) {
		continueValidations = false;

www/edgeexpress/jscript/SpryAssets/SpryValidationTextField.js  view on Meta::CPAN

	}

	this.errors = errors;
	this.fixedValue = fixedValue;

	this.flags.locked = false;

	return mustRevert;
};

Spry.Widget.ValidationTextField.prototype.onChange = function(e)

 view all matches for this distribution


Egg-Plugin-Net-Scan

 view release on metacpan or  search on metacpan

lib/Egg/Plugin/Net/Scan.pm  view on Meta::CPAN


=item * timeout

Time to wait for answer from port.

* It is judged that it is blocked when there is no answer in this time.

Default is '1'.

=item * protcol

 view all matches for this distribution


Egg-Release-DBI

 view release on metacpan or  search on metacpan

lib/Egg/Mod/EasyDBI.pm  view on Meta::CPAN

    or
  $table->find_insert( id=> [1], user=> 'banban', age=> 20 );

=head2 for_update ([PRIMARY_KEY], [VALUE])

The record by FOR UPDATE is locked.

0 returns when failing.

  # SELECT * FROM $table WHERE id = ? FOR UPDATE
  $table->for_update( id=> 1 );

 view all matches for this distribution


ElasticEmail

 view release on metacpan or  search on metacpan

lib/ElasticEmail.pm  view on Meta::CPAN

#
# Methods used to manage your Contacts.
#
package Api::Contact;

        # Activate contacts that are currently blocked.
            # string apikey - ApiKey that gives you access to our SMTP and HTTP API's.
            # bool activateAllBlocked - Activate all your blocked contacts.  Passing True will override email list and activate all your blocked contacts. (default False)
            # IEnumerable<string> emails - Comma delimited list of contact emails (default None)
    sub ActivateBlocked
    {
        shift;
        my @params = [apikey => $Api::mainApi->{apikey}, 
                        activateAllBlocked => shift,
                        emails => shift];
        return $Api::mainApi->Request('contact/activateblocked', "GET", \@params);
    }

        # Add a new contact and optionally to one of your lists.  Note that your API KEY is not required for this call.
            # string publicAccountID - Public key for limited access to your account such as contact/add so you can use it safely on public websites.
            # string email - Proper email address.

lib/ElasticEmail.pm  view on Meta::CPAN

                        field => shift,
                        notifyEmail => shift];
        return $Api::mainApi->Request('contact/add', "GET", \@params);
    }

        # Manually add or update a contacts status to Abuse, Bounced or Unsubscribed status (blocked).
            # string apikey - ApiKey that gives you access to our SMTP and HTTP API's.
            # string email - Proper email address.
            # ApiTypes::ContactStatus status - Name of status: Active, Engaged, Inactive, Abuse, Bounced, Unsubscribed.
    sub AddBlocked
    {
        shift;
        my @params = [apikey => $Api::mainApi->{apikey}, 
                        email => shift,
                        status => shift];
        return $Api::mainApi->Request('contact/addblocked', "GET", \@params);
    }

        # Change any property on the contact record.
            # string apikey - ApiKey that gives you access to our SMTP and HTTP API's.
            # string email - Proper email address.

lib/ElasticEmail.pm  view on Meta::CPAN

                        limit => shift,
                        offset => shift];
        return $Api::mainApi->Request('contact/list', "GET", \@params);
    }

        # Load blocked contacts
            # string apikey - ApiKey that gives you access to our SMTP and HTTP API's.
            # IEnumerable<ApiTypes::ContactStatus> statuses - List of comma separated message statuses: 0 or all, 1 for ReadyToSend, 2 for InProgress, 4 for Bounced, 5 for Sent, 6 for Opened, 7 for Clicked, 8 for Unsubscribed, 9 for Abuse Report
            # string search - List of blocked statuses: Abuse, Bounced or Unsubscribed (default None)
            # int limit - Maximum of loaded items. (default 0)
            # int offset - How many items should be loaded ahead. (default 0)
        # Returns List<ApiTypes::BlockedContact>
    sub LoadBlocked
    {
        shift;
        my @params = [apikey => $Api::mainApi->{apikey}, 
                        statuses => shift,
                        search => shift,
                        limit => shift,
                        offset => shift];
        return $Api::mainApi->Request('contact/loadblocked', "GET", \@params);
    }

        # Load detailed contact information
            # string apikey - ApiKey that gives you access to our SMTP and HTTP API's.
            # string email - Proper email address.

lib/ElasticEmail.pm  view on Meta::CPAN


        # Create a series of nth selection lists from an existing list or segment
            # string apikey - ApiKey that gives you access to our SMTP and HTTP API's.
            # string listName - Name of your list.
            # int numberOfLists - The number of evenly distributed lists to create.
            # bool excludeBlocked - True if you want to exclude contacts that are currently in a blocked status of either unsubscribe, complaint or bounce. Otherwise, false. (default True)
            # bool allowUnsubscribe - True: Allow unsubscribing from this list. Otherwise, false (default False)
            # string rule - Query used for filtering. (default None)
            # bool allContacts - True: Include every Contact in your Account. Otherwise, false (default False)
    sub CreateNthSelectionLists
    {
        shift;
        my @params = [apikey => $Api::mainApi->{apikey}, 
                        listName => shift,
                        numberOfLists => shift,
                        excludeBlocked => shift,
                        allowUnsubscribe => shift,
                        rule => shift,
                        allContacts => shift];
        return $Api::mainApi->Request('list/createnthselectionlists', "GET", \@params);
    }

        # Create a new list with randomized contacts from an existing list or segment
            # string apikey - ApiKey that gives you access to our SMTP and HTTP API's.
            # string listName - Name of your list.
            # int count - Number of items.
            # bool excludeBlocked - True if you want to exclude contacts that are currently in a blocked status of either unsubscribe, complaint or bounce. Otherwise, false. (default True)
            # bool allowUnsubscribe - True: Allow unsubscribing from this list. Otherwise, false (default False)
            # string rule - Query used for filtering. (default None)
            # bool allContacts - True: Include every Contact in your Account. Otherwise, false (default False)
        # Returns int
    sub CreateRandomList
    {
        shift;
        my @params = [apikey => $Api::mainApi->{apikey}, 
                        listName => shift,
                        count => shift,
                        excludeBlocked => shift,
                        allowUnsubscribe => shift,
                        rule => shift,
                        allContacts => shift];
        return $Api::mainApi->Request('list/createrandomlist', "GET", \@params);
    }

lib/ElasticEmail.pm  view on Meta::CPAN

        # Number of messages in progress
        #
        InProgressCount => shift,

        #
        # Number of contacts currently with blocked status of Unsubscribed, Complaint, Bounced or InActive
        #
        BlockedContactsCount => shift,

        #
        # Numeric reputation
        #
        Reputation => shift,

lib/ElasticEmail.pm  view on Meta::CPAN

        bless $self, $class;
        return $self;
    }

    # 
    # Blocked Contact - Contact returning Hard Bounces
    # 
    package ApiTypes::BlockedContact;
    sub new
    {
        my $class = shift;
        my $self = {
        #

 view all matches for this distribution


Elive

 view release on metacpan or  search on metacpan

lib/Elive/Entity/MeetingParameters.pm  view on Meta::CPAN

# v9.5
__PACKAGE__->_alias('inSessionInvitations' => 'inSessionInvitation');
__PACKAGE__->_alias('invites' => 'inSessionInvitation');

has 'followModerator'  => (is => 'rw', isa => 'Bool',
			   documentation => 'Whiteboard slides are locked to moderator view');
__PACKAGE__->_alias('follow_moderator' => 'followModerator');

has 'videoWindow'  => (is => 'rw', isa => 'Int',
		       documentation => 'Max simultaneous cameras');
__PACKAGE__->_alias('max_cameras' => 'videoWindow');

 view all matches for this distribution


Email-Fingerprint

 view release on metacpan or  search on metacpan

lib/Email/Fingerprint/Cache.pm  view on Meta::CPAN

on success; false on failure.

The actual filename will probably differ from the 'foo', because
the backend will usually add an extension or otherwise munge it.

C<set_file> has I<no> effect while the cache file is locked or open!

=cut

sub set_file {
    my ($self, $file) = @_;

    # Validation
    return if $self->get_backend->is_locked;
    return if $self->get_backend->is_open;

    # OK, there's no harm in changing the file attribute
    $self->get_backend->set_file($file);

lib/Email/Fingerprint/Cache.pm  view on Meta::CPAN

    $cache->unlock;

Dump a human-readable version of the contents of the cache. Data is
printed in timestamp order.

The cache I<must> first be opened, and I<should> first be locked.

=cut

sub dump {
    my $self = shift;

 view all matches for this distribution


Email-IsFree

 view release on metacpan or  search on metacpan

IsFree.pm  view on Meta::CPAN

blessyou.co.uk
blimey.co.uk
blindalley.co.uk
blindspot.co.uk
blissout.co.uk
blockedauthor.co.uk
blondes.com
bloodbrothers.co.uk
bloodyhell.co.uk
bloodymary.co.uk
bloomsday.net

 view all matches for this distribution


Embperl

 view release on metacpan or  search on metacpan

epmem.c  view on Meta::CPAN

}
#else
#define chk_on_blk_list(_x, _y)
#endif

/* Free a chain of blocks --- must be called with alarms blocked. */

static void free_blocks(union block_hdr *blok)
{
#ifdef ALLOC_USE_MALLOC
    union block_hdr *next;

epmem.c  view on Meta::CPAN

#endif
}


/* Get a new block, from our own free list if possible, from the system
 * if necessary.  Must be called with alarms blocked.
 */

static union block_hdr *new_block(int min_size)
{
    union block_hdr **lastptr = &block_freelist;

epmem.c  view on Meta::CPAN

 * output is copied over.  The new block isn't linked into the pool
 * until all the output is done.
 *
 * Note that this is completely safe because nothing else can
 * allocate in this tMemPool while ep_psprintf is running.  alarms are
 * blocked, and the only thing outside of alloc.c that's invoked
 * is ep_vformatter -- which was purposefully written to be
 * self-contained with no callouts.
 */

struct psprintf_data {

 view all matches for this distribution


Encode-Guess-Educated

 view release on metacpan or  search on metacpan

t/data/demos/10625668.iso-8859-1  view on Meta::CPAN


REFERENCES



Accelerated apoptosis is one mechanism proposed
for the loss of CD4+ T-lymphocytes in human immunodeficiency virus type
1 (HIV-1 ) infection. The HIV-1 envelope glycoprotein, gp160, contains two C-terminal calmodulin-binding domains. Expression of
gp...

in vitro calmodulin binding to a peptide corresponding to
the C-terminal calmodulin-binding domain of gp160. Stable Tet-off
Jurkat cell lines were developed that inducibly express wild type gp160
or gp160A835W. Increasing expression of wild type gp16...

INTRODUCTION

t/data/demos/10625668.iso-8859-1  view on Meta::CPAN


The coat glycoprotein of HIV-1, gp160, is post-translationally cleaved
to an extracellular subunit, gp120, and a transmembrane subunit, gp41.
The subunits are non-covalently associated, and both are required for
viral entry into the cell. Two calmodu...



We demonstrate here that gp160 expression enhances FAS-mediated
apoptosis in Jurkat cells by increasing calmodulin expression and
accelerating caspase 3activation and that these effects that require
calmodulin binding to gp160 are blocked by a single...

EXPERIMENTAL PROCEDURES

TOP

t/data/demos/10625668.iso-8859-1  view on Meta::CPAN


 TdT Apoptosis Staining--

In situ apoptosis
staining was performed using terminal deoxynucleotide transferase
(Roche Molecular Biochemicals). Briefly, cells were collected after
treatments and cytospun onto microscope slides and fixed in 10%
formalin in PBS. Slides were then ...

cobalt chloride). After a brief wash, slides were blocked in 1% bovine
serum albumin, 0.1% gelatin in PBS for 15min at room temperature.
Slides were incubated with alkaline phosphatase-conjugated anti-digoxigenin antibody for 1h at room temperature, ...



 Western Blot for Caspase 3and Calmodulin--

Jurkat cells were
treated as indicated and lysed in buffer containing 50m M

HEPES, pH 7.4,150m M NaCl, 10% glycerol, 1% Triton X-100, 1m M sodium orthovanadate, 10m M EDTA,
10m M EGTA, 1m M ammonium molybdate, 50m M NaF, 0.5µ M okadaic acid, 5m M

benzamidine, and 50µg/ml pepstatin. Equivalent amounts of protein
(100µg) were separated on 12.5% SDS-PAGE and transferred to
Immobilon P membrane (Millipore, Bedford, MA). Membranes were fixed in
0.2% glutaraldehyde in Tris-buffered saline (TBS ) fo...



 Dansyl-Calmodulin Binding--

t/data/demos/10625668.iso-8859-1  view on Meta::CPAN






The long cytoplasmic tail of gp160 is a feature conserved among HIV-1,
HIV-2, and simian immunodeficiency virus. No specific function has been
attributed to the cytoplasmic region, and despite considerable
variability in the overall sequence, all kno...





t/data/demos/10625668.iso-8859-1  view on Meta::CPAN






Caspase 3,or caspase 3-like proteases, are critical effectors that
play an important role in most types of apoptosis ( 8 ). During
activation, caspase 3is first cleaved by an upstream caspase (caspase
8in the FAS pathway) and then undergoes a second ...

block gp160-enhanced FAS- and ceramide-induced apoptosis,
suggesting a calmodulin-dependent mechanism. The molecular site of action of calmodulin antagonists in gp160-enhanced apoptosis is
currently under investigation. However, the data presented he...



 view all matches for this distribution


English-Name

 view release on metacpan or  search on metacpan

lib/English/ppport.h  view on Meta::CPAN

get_av|5.006000|5.003007|p
getc|5.003007||Viu
get_c_backtrace|5.021001||Vi
get_c_backtrace_dump|5.021001||V
get_context|5.006000|5.006000|nu
getc_unlocked|5.003007||Viu
get_cv|5.006000|5.003007|p
get_cvn_flags|5.009005|5.003007|p
get_cvs|5.011000|5.003007|p
getcwd_sv|5.007002|5.007002|
get_db_sub|||iu

lib/English/ppport.h  view on Meta::CPAN

PERL_MALLOC_WRAP|5.009002|5.009002|Vn
PerlMem_calloc|5.006000||Viu
PerlMem_free|5.005000||Viu
PerlMem_free_lock|5.006000||Viu
PerlMem_get_lock|5.006000||Viu
PerlMem_is_locked|5.006000||Viu
PerlMem_malloc|5.005000||Viu
PERL_MEMORY_DEBUG_HEADER_SIZE|5.019009||Viu
PerlMemParse_calloc|5.006000||Viu
PerlMemParse_free|5.006000||Viu
PerlMemParse_free_lock|5.006000||Viu
PerlMemParse_get_lock|5.006000||Viu
PerlMemParse_is_locked|5.006000||Viu
PerlMemParse_malloc|5.006000||Viu
PerlMemParse_realloc|5.006000||Viu
PerlMem_realloc|5.005000||Viu
PerlMemShared_calloc|5.006000||Viu
PerlMemShared_free|5.006000||Viu
PerlMemShared_free_lock|5.006000||Viu
PerlMemShared_get_lock|5.006000||Viu
PerlMemShared_is_locked|5.006000||Viu
PerlMemShared_malloc|5.006000||Viu
PerlMemShared_realloc|5.006000||Viu
PERL_MG_UFUNC|5.007001||Viu
Perl_modf|5.006000|5.006000|n
PERL_MULTICONCAT_HEADER_SIZE|5.027006||Viu

lib/English/ppport.h  view on Meta::CPAN

putc|5.003007||Viu
put_charclass_bitmap_innards|5.021004||Viu
put_charclass_bitmap_innards_common|5.023008||Viu
put_charclass_bitmap_innards_invlist|5.023008||Viu
put_code_point|5.021004||Viu
putc_unlocked|5.003007||Viu
putenv|5.005000||Viu
put_range|5.019009||Viu
putw|5.003007||Viu
pv_display|5.006000|5.003007|p
pv_escape|5.009004|5.003007|p

 view all matches for this distribution


Envy

 view release on metacpan or  search on metacpan

INSTALL  view on Meta::CPAN

=item * REUSE

Envy allows the centralization of configuration files.  When new
versions of software come out, it is easy to globally publish new
configuration files for a gradual, controlled migration.  Instead of
being locked into backward compatibility, you can gently nudge users
towards change.

=item * CHOICE

Each user can customize their environment exactly to the degree they

 view all matches for this distribution


Etcd-Lock

 view release on metacpan or  search on metacpan

lib/Etcd/Lock.pm  view on Meta::CPAN

  ... do_something ...
  $etcdLock->unlock();

=head1 DESCRIPTION

Etcd::Lock is a lock based on etcd. When a key is locked, try to lock same key
return false. Key is unlocked automatically when ttl seconds expired.

=encoding UTF-8

=head1 METHODS

=head2 lock()

Return true if key is unlocked. Now it's locked.

=head2 unlock()

Return true if key is locked. Now it's unlocked

=head2 ttl(new_ttl)

Set or return after how many seconds a lock is automatically removed.
Defaul: 3600.

 view all matches for this distribution


Event-ExecFlow

 view release on metacpan or  search on metacpan

lib/Event/ExecFlow/Job/Group.pm  view on Meta::CPAN

    my %par = @_;
    my ($skip) = $par{'skip'};
    
    $skip = "" if ! defined $skip;

    my $blocked_job;
    while ( 1 ) {
        if (      $self->get_cancelled
             ||   $self->all_jobs_finished
             || ( $self->get_error_message &&
                  $self->get_stop_on_failure ) ) {

lib/Event/ExecFlow/Job/Group.pm  view on Meta::CPAN

        }

        return if $self->get_scheduler &&
                  $self->get_scheduler->is_exclusive;
    
        my $job = $self->get_next_job(blocked=>$blocked_job);
        next if defined $job && "$job" eq "$skip";

        if ( !$job ) {
            $self->try_reschedule_jobs(skip => $skip);
            last;
        }

        if ( $self->get_scheduler ) {
            my $state = $self->get_scheduler->schedule_job($job);
            return if $state eq 'sched-blocked';
            if ( $state eq 'job-blocked' ) {
                $blocked_job = $job;
                next;
            }
            die "Illegal scheduler state '$state'"
                unless $state eq 'ok';
        }

lib/Event/ExecFlow/Job/Group.pm  view on Meta::CPAN

}

sub get_next_job {
    my $self = shift;
    my %par = @_;
    my ($blocked) = $par{'blocked'};

    $blocked = "" if ! defined $blocked;

    my $next_job;    
    foreach my $job ( @{$self->get_jobs} ) {
        next if defined $job && "$job" eq "$blocked";
        $Event::ExecFlow::DEBUG && print "Group(".$self->get_info.")->get_next_job: check ".$job->get_info."=>".$job->get_state."\n";
        if ( $job->get_state eq 'waiting' &&
             $self->dependencies_ok($job) ) {
            $next_job = $job;
            last;

 view all matches for this distribution


Event-Lib-UDPPump

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

Revision history for Perl extension Event::Lib::UDPPump.

0.01  Thu Nov  2 16:40:31 2006
	- original version; created by h2xs 1.23 with options
		-A -O -n Event::Lib::UDPPump eventlib-test/blocked_read.h

 view all matches for this distribution


Event-RPC

 view release on metacpan or  search on metacpan

lib/Event/RPC/Client.pm  view on Meta::CPAN

    my $self = shift;
    my ($request) = @_;

    my $message = $self->get_message_format->new( $self->get_sock );

    $message->write_blocked($request);

    my $rc = eval { $message->read_blocked };

    if ($@) {
        $self->error($@);
        return;
    }

 view all matches for this distribution


Event

 view release on metacpan or  search on metacpan

demo/msg.pm  view on Meta::CPAN


my %MSG;
my $LABEL = "msg000000";

sub new {
    use attrs qw(locked method);

    my $class = shift;
    my %arg = @_;
    my $msg = $arg{'-msg'};
    my $cb  = $arg{'-callback'};

 view all matches for this distribution


Evo

 view release on metacpan or  search on metacpan

lib/Evo/Promise/Role.pm  view on Meta::CPAN


requires 'postpone';

# https://promisesaplus.com/

has $_, optional for qw(d_v d_locked d_fh d_rh d_settled);
has 'd_children' => ro, sub { [] };
has 'state' => PENDING;

#sub assert { shift or croak join '; ', caller() }

lib/Evo/Promise/Role.pm  view on Meta::CPAN


### DRIVER INTERNAL METHODS

sub d_lock_in ($self, $parent) {

  #assert(!$self->d_locked);
  #assert(!$self->d_settled);
  unshift $parent->d_children->@*, $self->d_locked(1);
}

sub d_fulfill ($self, $v) {

  #assert(!$self->d_settled);

 view all matches for this distribution


Excel-Template-XLSX

 view release on metacpan or  search on metacpan

lib/Excel/Template/XLSX.pm  view on Meta::CPAN

###############################################################################
sub _parse_protection {

=head2 _parse_protection

Parses locked and hidden attributes for a cell. These are only
useful if the worksheet is locked.  

This module does not lock the workbook or the worksheet.

=cut

   my $self       = shift;
   my ($node)     = @_;
   my @protection = qw(locked hidden);
   my %prot       = ();
   if ( my $protection = $_->first_child('protection') ) {
      map {
         my $v = $protection->att($_);
         $prot{$_} = $v if defined $v;

 view all matches for this distribution


Excel-Template

 view release on metacpan or  search on metacpan

lib/Excel/Template/Container/Locked.pm  view on Meta::CPAN


Excel::Template::Container::Locked - Excel::Template::Container::Locked

=head1 PURPOSE

To format all children in locked

=head1 NODE NAME

LOCKED

lib/Excel/Template/Container/Locked.pm  view on Meta::CPAN

You must have protected the worksheet containing any cells that are affected by
this format. Otherwise, this node will have no effect.

=head1 USAGE

  <locked>
    ... Children here
  </locked>

In the above example, the children will be displayed (if they are displaying
elements) in a locked format. All other formatting will remain the same and the
"locked"-ness will end at the end tag.

=head1 AUTHOR

Rob Kinyon (rob.kinyon@gmail.com)

 view all matches for this distribution


Excel-Writer-XLSX

 view release on metacpan or  search on metacpan

examples/protection.pl  view on Meta::CPAN


my $workbook  = Excel::Writer::XLSX->new( 'protection.xlsx' );
my $worksheet = $workbook->add_worksheet();

# Create some format objects
my $unlocked = $workbook->add_format( locked => 0 );
my $hidden   = $workbook->add_format( hidden => 1 );

# Format the columns
$worksheet->set_column( 'A:A', 45 );
$worksheet->set_selection( 'B3' );

# Protect the worksheet
$worksheet->protect();

# Examples of cell locking and hiding.
$worksheet->write( 'A1', 'Cell B1 is locked. It cannot be edited.' );
$worksheet->write_formula( 'B1', '=1+2', undef, 3 );    # Locked by default.

$worksheet->write( 'A2', 'Cell B2 is unlocked. It can be edited.' );
$worksheet->write_formula( 'B2', '=1+2', $unlocked, 3 );

$worksheet->write( 'A3', "Cell B3 is hidden. The formula isn't visible." );
$worksheet->write_formula( 'B3', '=1+2', $hidden, 3 );

$worksheet->write( 'A5', 'Use Menu->Tools->Protection->Unprotect Sheet' );

 view all matches for this distribution


( run in 2.772 seconds using v1.01-cache-2.11-cpan-49f99fa48dc )