小编dou*_*ker的帖子

如何获取系统中安装的rpm包列表

如何使用Perl获取Linux上安装的所有rpm包的列表.任何帮助表示赞赏.

perl rpm

4
推荐指数
1
解决办法
2万
查看次数

从 Azure Keyvault 部署 Web App 证书并创建 SSL 绑定

在部署 Azure RM 模板时,我一直试图解决以下问题。

New-AzureRmResourceGroupDeployment : 9:54:31 PM - Resource Microsoft.Web/certificates 'redacted' failed with message '{   "Code": "BadRequest",   "Message": "The service does not have access to '/subscriptions/redacted/resourcegroups/redacted/providers/microsoft.keyvault/vaults/redacted' Key Vault. Please make sure that you have  granted necessary permissions to the service to perform the request operation.",   "Target": null,   "Details": [
    {
      "Message": "The service does not have access to  '/subscriptions/redacted/resourcegroups/redacted/providers/microsoft.keyvault/vaults/redacted' Key Vault. Please make sure that you have  granted necessary permissions to the service to perform the request operation."
    }, …
Run Code Online (Sandbox Code Playgroud)

templates web-applications azure azure-active-directory

2
推荐指数
1
解决办法
2293
查看次数

使用Perl处理数据列

我想分割列并使用正则表达式获取数据.使用反向引用寻找更简单的解决方案.

previous balance payments adjustments charges payment without fine payment with fine

20,251.97 - 0.00 - 0.00 + 53,391.67 = 73,643.64 74,393.64

这是代码

#!/usr/bin/perl
use strict;

my $regex = qr/^(\d|-)?(\d|,)*\.?\d*$/;
my $data = "20,251.97                   -          0.00              -           0.00              +         53,391.67            =         73,643.64                74,393.64"
Run Code Online (Sandbox Code Playgroud)

perl

0
推荐指数
1
解决办法
119
查看次数

使用Perl提取样式标记数据

无论如何,我可以使用Perl从HTML页面中提取样式标记数据

#!/usr/bin/perl
use strict;

my $HTML = <<"EOF";
    <HTML>
    <head>
    <style type='text/css'>

    #yui-dt0-bdrow0 td{background:#CFF;}

    #yui-dt0-bdrow1 td{background:#CFF;}

    #yui-dt0-bdrow2 td{background:#CFF;}

    </style>
    </head>
    </HTML>
EOF
Run Code Online (Sandbox Code Playgroud)

我需要yui-dt0-bdrow0 td{background:#CFF;}从上面的HTML代码中提取信息.

我搜索了很多模块,但找不到合适的模块.除此之外,我没有尝试编写任何代码来提取信息

任何帮助表示赞赏.

perl

0
推荐指数
1
解决办法
124
查看次数