steppnav has asked for the wisdom of the Perl Monks concerning the following question:
Very recent perl on Cygwin
Summary of my perl5 (revision 5 version 32 subversion 1) configuration +: Platform: osname=cygwin osvers=3.2.0(0.34053) archname=x86_64-cygwin-threads-multi uname='cygwin_nt-10.0 cygwinpro 3.2.0(0.34053) 2021-03-29 08:42 x8 +6_64 cygwin '
Why doesn't this give just the ip address without a trailing ')'??
#!/usr/bin/perl my $ip = "csteppfw pts/0 2022-06-27 15:53 (192.168.5.100)"; $ip =~ s/.*?(\d+\.\d+\.\d+\.\d+).*?/\1/; ## $line =~ s/.*$ip//; print "$ip\n"; -------------------- $ bin/test 192.168.5.100)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: This should be simple (updated)
by AnomalousMonk (Archbishop) on Jun 30, 2022 at 02:30 UTC | |
by steppnav (Initiate) on Jun 30, 2022 at 12:46 UTC | |
by AnomalousMonk (Archbishop) on Jun 30, 2022 at 13:24 UTC | |
|
Re: This should be simple
by Your Mother (Archbishop) on Jun 29, 2022 at 23:46 UTC | |
|
Re: This should be simple
by LanX (Saint) on Jun 30, 2022 at 00:05 UTC |