Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged Perl

0 votes
498 views
1 answer
    I am new to programming and hence I am stuck on a basic level problem. Following is code I wrote for comparison. But ... "$_ "; close(FILE); } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
680 views
1 answer
    MIME::Lite can pass extra parameters to Net::SMTP constructor. Version MIME::Lite 3.030 does not include SSL on its ... to mail server: $! "; See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
366 views
1 answer
    I have the following code: $headers; some_sub( %$headers ); When I call some_sub I get an error: Can't use an ... , ], body => $body ); See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
638 views
1 answer
    I want to build several hashes using the same keys and for the keys to have the same order when I print them ... when I run the code repeatedly. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
632 views
1 answer
    How can I import a worksheet from a password-protected xlsx workbook into R? I would like to be able to convert ... perl code that can do it. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
552 views
1 answer
    Today in my college a teacher asked me a question. He wrote this code on the paper and said "What will ... is getting print on each iteration? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
620 views
1 answer
    I have a list of strings and I want to pass those strings as arguments in a single Bash command line call. For simple ... $1/g; return $_[0]; } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
695 views
1 answer
    I'm not sure if these paths are duplicates. Given the relative path, how do I determine absolute path using a shell ... absolute path: /a/b/c/d See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
797 views
1 answer
    I have a Perl script running in an AIX box. The script tries to open a file from a certain directory ... ENOTTY (Inappropriate ioctl for device) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
757 views
1 answer
    I want to read UTF-8 input in Perl, no matter if it comes from the standard input or from a file, using the ... gives me this: a xC3x8A xC2xA7 b See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
832 views
1 answer
    If I run the following Perl program: perl -e 'use utf8; print "鸡 ";' I get this warning: Wide character in ... a one liner on the command line. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
914 views
1 answer
    I want to create a multidimensional %hash from the @array. Suppose @array is like my @array=(1,2,3,4,5); ... before the last element in %hash. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I am trying to connect to a closed-off server - an air-conditioner - using a simple PERL script #!/usr/ ... be in the underlying OpenSSL libs. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
770 views
1 answer
    I need some help tweaking my code to look for another attribute in this unix df output: Ex. Filesystem Size Used Avail ... ); }; print "$cap "; See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
940 views
1 answer
    Please, I try to create a complexe datastructure. I know how to do $branch{'level1'}{'level2'}{'level3'}='leaf'; ... How can I do please ? A. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
744 views
1 answer
    How do I extract the domain out of an URL? Is there a Perl Module? I could not find any. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
675 views
1 answer
    So as you probably know, in Perl "utf8" means Perl's looser understanding of UTF-8 which allows characters that ... 'utf8' and 'UTF-8'? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
870 views
1 answer
    In the code below, from a blog post by Alias, I noticed the use of the double exclamation point !!. I ... related The List Squash Operator x!! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
687 views
1 answer
    read and sysread have very similar documentation. What are the differences between the two? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I get following error when I try to connect using DBI DBI connect('database=chaosLRdb;host=192.168.0.1;port=5433', ... I know what i miss here? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
693 views
1 answer
    I sometimes see Perl code like this: my ( $variable ) = blah.... What is the point of putting parentheses around a ... $var2, $var3 ) = blah... See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
584 views
1 answer
    There are multiple installers for cpan modules available; I know of at least CPAN.pm (comes with perl,) ... installers I should know about? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
591 views
1 answer
    How do I tell CPAN to install all dependencies? I tried setting these in cpan: cpan> o conf prerequisites_policy ... when it asks something). See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
661 views
1 answer
    My query: In the following code i had tried to bring the print $commandoutput[0] to be shifted or passed into ... $lines=shift; print $lines; } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
578 views
1 answer
    I'm running ActiveState's 32 bit ActivePerl 5.14.2 on Windows 7. I wanted to mess around with a Git pre- ... exit. How is this valid syntax? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
607 views
1 answer
    I have regex that matches words fine except if they contain a special character such as ~Query which is the ... may contain a special character? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
681 views
1 answer
    I need to run bin/psql on the command line (or script) and print its pg_backend_pid out, so that the ... done through shell script or perl? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
617 views
1 answer
    Is there a regex to match "all characters including newlines"? For example, in the regex below, there is no output from ... +?)(END)/; print $2; See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...