Orchid Fairy (兰花仙子) wrote:
> Hello John & list,
>
> We could use a module in one-liner perl command as:
>
> perl -MPOSIX -e '';
>
> But if I want to use something like:
>
> use POSIX qw/strftime/;
>
> how to do it with perl command line?
>
> Thanks.
>
perl -MPOSIX=strftime -e 'print strftim
Hi,
I am trying to use a perl script like the following :
main.pl:
require "abc.pl";
print "In parent script\n";
abc.pl:
print "In abc.pl script\n";
I have some perl options set in PERL5OPT, which work fine for main.pl but not
for abc.pl. This is how my Perl5OPT looks:
PERL5OPT="
Hello John & list,
We could use a module in one-liner perl command as:
perl -MPOSIX -e '';
But if I want to use something like:
use POSIX qw/strftime/;
how to do it with perl command line?
Thanks.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beg
> "BRH" == Bryan R Harris writes:
BRH> I have a curiosity maybe someone here can help with.
BRH> This code:
BRH>@a=(1,2);
BRH>map { $_ = 3 } @a;
BRH>print join(",", @a), "\n";
BRH> ... prints "3,3". That map is changing the @a array as it goes through
it.
BRH> G
On 11/10/09 Tue Nov 10, 2009 1:22 PM, "Bryan R Harris"
scribbled:
>
>
> I have a curiosity maybe someone here can help with.
>
> This code:
>
>@a=(1,2);
>map { $_ = 3 } @a;
>print join(",", @a), "\n";
>
> ... prints "3,3". That map is changing the @a array as it goes through i
I have a curiosity maybe someone here can help with.
This code:
@a=(1,2);
map { $_ = 3 } @a;
print join(",", @a), "\n";
... prints "3,3". That map is changing the @a array as it goes through it.
Good.
Now this:
%a=(1,2);
map { $_ = 3 } keys %a;
print join(",", keys(%a)), "
rithu wrote:
Hi,
Hello,
I'm an oracle user. One of my implementation needs a little bit of
perl usage.
i've an array(@hexa_tableau) which contains restricted hexadecimal
characters and a string which is converted into hexadecimal.
while ((@carac) = $sel->fetchrow_array) {
push(@hex
C.DeRykus wrote:
> On Nov 9, 3:31 am, shawnhco...@gmail.com (Shawn H Corey) wrote:
>> redo if $kid != $child_pid;
>
> Hm, I'm not sure why you'd want to 'redo' in the case of a
> blocking wait. As I read the docs, a blocking wait on a
> specific pid returns only that pid if reaped normally or -1
Hi,
I'm an oracle user. One of my implementation needs a little bit of
perl usage.
i've an array(@hexa_tableau) which contains restricted hexadecimal
characters and a string which is converted into hexadecimal.
while ((@carac) = $sel->fetchrow_array) {
push(@hexa_tableau, $carac[0]);
On 11/9/09 Mon Nov 9, 2009 7:48 PM, "cute"
scribbled:
> I try the latest version 3.221 and found some difference between
> manual.
> The Verilog::Netlist::Net object seem not recognize its member
> function "->data_type"
>
> is there any advise?
Yes. Post a short program that illustrates the
Dermot, I did set domain and user environemt variables, no change.
Uri, thanks for the tips. I've implemented localtime() and next if,
but still see same results.
Mr. Scott, I do believe you are onto something there. I do see the
browser being updated after each file is FTPd, but the process simp
On Nov 9, 3:31 am, shawnhco...@gmail.com (Shawn H Corey) wrote:
> Taylor, Andrew (ASPIRE) wrote:
> > Hello
>
> > I have a script that, much like the Little Old Lady who lived in a shoe,
> > has so many children it's not sure what to do.
>
> > Basically, the script does some stuff, then kicks off mu
I try the latest version 3.221 and found some difference between
manual.
The Verilog::Netlist::Net object seem not recognize its member
function "->data_type"
is there any advise?
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.or
On Mon, Nov 9, 2009 at 9:22 PM, Matthew Sacks
wrote:
>
> I am unabashedly posting a quiz question I have about regular expressions:
>
> Looking for suggestions.
>
> I am thinking
>
> 1) make the set of regular expressions into one big expression?
> 2) search the seach strings, somehow, for common
Rob Coops wrote:
> I have to agree with Shawn, as you follow the tree branch by branch you get
> to the final match, the total number of checks required should on average be
> lower then it is when checking every single regex, which you would have to
> do for every string that does not match anythi
>On some systems, waitpid may return something rather than a child pid
or
>-1. This would happen when the wait was interrupted by something other
>than a child death. Most likely, it would be zero.
>The return status, $?, is a 16-bit word of three packed values. See
>`perldoc perlvar` and searc
On Tue, Nov 10, 2009 at 6:08 AM, Shawn H Corey wrote:
> Matthew Sacks wrote:
> > I am unabashedly posting a quiz question I have about regular
> expressions:
> >
> > Looking for suggestions.
> >
> > I am thinking
> >
> > 1) make the set of regular expressions into one big expression?
> > 2) search
17 matches
Mail list logo