AnyEvent-I3

 view release on metacpan or  search on metacpan

lib/AnyEvent/I3.pm  view on Meta::CPAN

190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
    # Check if we need to resolve ~
    if ($path =~ /~/) {
        # We use getpwuid() instead of $ENV{HOME} because the latter is tainted
        # and thus produces warnings when running tests with perl -T
        my $home = (getpwuid($<))[7];
        confess "Could not get home directory" unless $home and -d $home;
        $path =~ s/~/$home/g;
    }
 
    bless { path => $path } => $class;
}
 
=head2 $i3->connect
 
Establishes the connection to i3. Returns an C<AnyEvent::CondVar> which will
be triggered with a boolean (true if the connection was established) as soon as
the connection has been established.
 
    if ($i3->connect->recv) {
        say "Connected to i3";

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.198 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )