Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
foreach $dev (@device) {
my ($log_name, $type, $uis_fstatus, $uis_managed_date, $uis_deactivated_date ) = split (/,/, $dev);
my ($month, $day, $year, $time) = split (/-/,$uis_managed_date);
my ($de_month, $de_day, $de_year, $de_time) = split (/-/,$uis_deactivated_date);
next unless ($year);
next unless {($month <= $rpt_month) || ($year < $rpt_yr)};
next unless ($uis_fstatus =~ /managed/i);
next unless ($log_name =~ /\.na\.$key/i);
next if ($uis_fstatus =~ /un/i && $de_month != $rpt_month);
next if ($type =~ /circuit/i);
next if ($log_name =~ /imac/i);
next if ($log_name =~ /default/i);
if ($type =~ /router/i) {
$rout_cnt++;
}
elsif ($type =~ /switch/i) {
$swtch_cnt++;
}
elsif ($type =~ /server/i) {
$sys_cnt++;
}
elsif ($type =~ /ups/i) {
$ups_cnt++;
}
else {
$oth_cnt++;
}
}
my $total = ($rout_cnt + $swtch_cnt + $sys_cnt + $ups_cnt + $oth_cnt);
my ($log_name, $type, $uis_fstatus, $uis_managed_date, $uis_deactivated_date ) = "";
foreach $dev (@device) {
($log_name, $type, $uis_fstatus, $uis_managed_date, $uis_deactivated_date ) = split (/,/, $dev);
foreach $dev (@device) {
my @fields = split (/,/, $dev);
my $log_name = $fields[0] || next;
my $type = $fields[1] || next;
my $uis_fstatus = $fields[2] || next;
my $uis_managed_date = $fields[3] || next;
my $uis_deactivated_date = $fields[4] || next;
# other code
}
my $log_name = $fields[0] || next;
my $type = $fields[1] || next;
my $uis_fstatus = $fields[2] || next;
my $uis_managed_date = $fields[3] || next;
my $uis_deactivated_date = $fields[4] || next;
foreach my $dev (@device) {
next if $dev =~ /,,+/;
# or ... next if index($dev, ",,") > -1;
my @fields = split (/,/, $dev);
...
#!/usr/bin/perl -w
use strict;
perluserpengo said:KevinADC , correct me if i'm wrong,
I think he said some fields and this is for the whole line.