>-Original Message-
>From: Chris Stinemetz [mailto:chrisstinem...@gmail.com]
>Sent: Wednesday, March 21, 2012 15:14
>To: beginners@perl.org
>Subject: POSIX
>
>Is there a way to take localtime less two hours? So there is an offset of
>2?
>
>example line:
>
Is there a way to take localtime less two hours? So there is an offset of 2?
example line:
my $file = sprintf("$dirPath%s00.HCSFMS023",strftime("%Y%m%d%H",localtime ));
Thank you,
Chris
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@p
Post this on Perl Monks (http://perlmonks.org/) for non-beginner feed back,
Old Gray Bear
On Tue, Mar 30, 2010 at 2:38 PM, Paul Smith wrote:
> I have a feeling this is not a "beginners" question (I've been hacking
> in Perl for many years and UNIX systems for far longer) but it seems my
> choice
I have a feeling this is not a "beginners" question (I've been hacking
in Perl for many years and UNIX systems for far longer) but it seems my
choices are this list, or perl5-porters which also doesn't seem right.
Isn't there any list where non-beginner questions can be asked?
Anyway.
I have a Pe
On Nov 25, 7:44 am, raheel.has...@gmail.com (Raheel Hassan) wrote:
>
> I am unable to understand the use of these statements in the program, I have
> read about POSIX in the CPAN but still things are not clear to me.
>
> use POSIX ":sys_wait_h"; #What sys_wait_h does
Hello,
I am unable to understand the use of these statements in the program, I have
read about POSIX in the CPAN but still things are not clear to me.
use POSIX ":sys_wait_h"; #What sys_wait_h does?
waitpid($_,&WNOHANG) # what is WNOHANG?
my $message = $object -> re
Hi all:
When I install the “Shell-POSIX-Select” module into my system, I
got the following error message from screen. After I searched on
internet, I found any useful messages to resolve it. Could you tell me
how to resolve it or where to find some useful messages. Thanks a
lot
From: "Nei Kai" <[EMAIL PROTECTED]>
> 2008/3/11, Tom Phoenix <[EMAIL PROTECTED]>:
> > On Mon, Mar 10, 2008 at 5:44 PM, Nei Kai <[EMAIL PROTECTED]> wrote:
> >
> > > I found a mmap module in CPAN, called Sys::Mmap, whose
> > > version is V0.13 and is not updated since 2002.
> > > So I am not s
ot sure if it is supposed to be used nowadays.
>
>
> What happened when you tried it?
>
>
Actually I didn't try it, since I am not sure it is worth to spend
time to test it in advance.
Anyway, V0.13 doesn't sound like a fixed edition that should be
proposed to the manager.
d why doesn't perl try to give an interface for posix shared
> memory after so many years?
Maybe it's because you haven't contributed your patch to the core yet. :-)
Or maybe it's because the people who need that feature already find it
somewhere, somewhere in the vastnes
hi, guys
I have been searched for posix shared memory using mmap or something
likewise in perl for a while.
My version of perl is 5.8.7.
It seems perl only supports SysV shared memory model,
but the embedded system I am supposed to use does not support SysV.
I found a mmap module in CPAN, called
David Moreno Garza 写道:
Funny thing:
Jeff Pang wrote:
$ perl -e 'print $^O'
linux
User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)
Just trolling :-)
I'm confused,what do you mean?
--
http://home.arcor.de/jeffpang/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
Funny thing:
Jeff Pang wrote:
> $ perl -e 'print $^O'
> linux
User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)
Just trolling :-)
--
David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net/
Saca tus alas y empieza a volar.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Ken Foskey 写道:
> sub is_dev
> {
> my ($server, $host) = POSIX::uname();
>
> if ($host eq "aixmbk10") {
> return 1;
>
> I want to test this module in a test script. SO I want to code the
> various servers and check that it works.
>
sub is_dev
{
my ($server, $host) = POSIX::uname();
if ($host eq "aixmbk10") {
return 1;
I want to test this module in a test script. SO I want to code the
various servers and check that it works.
Is there a way to override the call to POSIX::uname
I maybe missing something here.
I try to rpmbuild authen-smb.0.90.src.rpm
That fails to generate rpm file.
I did try to re-recompile authen-smb.0.91.tar.gz
It complies OK no errors.
It install Smb files. But, it do not generate valid_user.al file.
Do I need ti set a flag to create the valid_user.al
Probably wrong/broken installation of Authen::Smb. Valid_User is defined
in file smbval/valid.c which is part of Authen::Smb distribution. Try to
recompile/reinstall Authen::Smb again.
Roman
On Wed, Feb 02, 2005 at 12:36:06PM +, [EMAIL PROTECTED] wrote:
> Morning
>
>
> I'm trying to run
Morning
I'm trying to run Authen:Smb
After spending some time debugging, it returns an error can not locate
valid_user.al
valid_user() is a function call from within Authen::Smb.
Which package/module contain valid_user.al ?
Dan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
On Wed, 29 Sep 2004 12:27:03 -0400, Bob Showalter
<[EMAIL PROTECTED]> wrote:
> Errin Larsen wrote:
> > When I use the following in my code, it runs and
> > works fine:
> >
> > use POSIX 'setsid';
> > use POSIX 'errno_h';
> >
Errin Larsen wrote:
> When I use the following in my code, it runs and
> works fine:
>
> use POSIX 'setsid';
> use POSIX 'errno_h';
> use POSIX ':sys_wait_h';
>
> However, when I try to combine those into one line:
>
> u
On Wed, 29 Sep 2004 11:32:58 -0400, Jim <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi Perlers,
> >
> > I've seen a lot of tutorial or example code dealing with the
> > POSIX module that does something like this:
> >
> > use POSIX ':sys
> Hi Perlers,
>
> I've seen a lot of tutorial or example code dealing with the
> POSIX module that does something like this:
>
> use POSIX ':sys_wait_h';
>
> What does the ':' mean/do in the above line?
>
Besides googling for it, try
Errin Larsen wrote:
> Hi Perlers,
>
> I've seen a lot of tutorial or example code dealing with the POSIX
> module that does something like this:
>
> use POSIX ':sys_wait_h';
>
> What does the ':' mean/do in the above line?
It's called
Hi Perlers,
I've seen a lot of tutorial or example code dealing with the POSIX
module that does something like this:
use POSIX ':sys_wait_h';
What does the ':' mean/do in the above line?
--Errin
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
John Fisher wrote:
>
> What am I doing wrong? Here are 3 attempts at trying to use getchar.
> It seems I am following the Usage, but I guess not.
>
>
> $ perl -e 'use POSIX;$ab="10";$pab=POSIX::getchar($ab);print $ab,"\n",$pab;'
> Usage: POSIX::ge
On Friday, September 12, 2003, at 07:18 AM, JOHN FISHER wrote:
What am I doing wrong? Here are 3 attempts at trying to use getchar.
It seems I am following the Usage, but I guess not.
POSIX's getchar() doesn't take any arguments. It pulls from STDIN
automatically. Hope that helps.
James
--
What am I doing wrong? Here are 3 attempts at trying to use getchar. It seems I am
following the Usage, but I guess not.
$ perl -e 'use POSIX;$ab="10";$pab=POSIX::getchar($ab);print $ab,"\n",$pab;'
Usage: POSIX::getchar() at -e line 1
$ perl -e 'use POSIX
David Gilden wrote:
>
> Hello,
Hello,
> How can get the date formatted to include the day of the week (plus one)
man 3 strftime
[snip]
%a The abbreviated weekday name according to the cur
rent locale.
%A The full weekday name according to the current
Hello,
How can get the date formatted to include the day of the week (plus one)
'04-07-2003-1013'
Thanks,
Dave
( kora musician / audiophile / web master @ cora connection / Ft. Worth, TX, USA)
The following misses the day of week!!
#!/usr/bin/perl -w
use POSIX 'strftime';
I am playing with a daemon that forks and am trying to be thorough as this will
hopefully become production code. My daemon uses:
use POSIX qw(:sys_wait_h :errno_h :signal_h);
For some of the fork handling. Later I looked at the fork description from The Camel
(3rd Edition - pg. 715) and then
I'm trying to change the inbound and outbound port speeds of a serial port
using POSIX. I'm trying to write a small perl script to drive an LCD
display. The reason I open it as DisplayIO is because I need to print to
standard IO. At the moment all I'm trying to do is change
> -Original Message-
> From: josh hoblitt [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 18, 2001 5:01 AM
> To: [EMAIL PROTECTED]
> Subject: Warnings with strict and POSIX
>
>
> I'm not sure exactly whats going on here. It seems the combination of
&g
I'm not sure exactly whats going on here. It seems the combination of
strict and POSIX ":sys_wait_h" is fine... but just POSIX seems to stop
the strict bareword warnings. Any idea whats going on here? (exporter
wierdness?)
#!/usr/bin/perl -w
use POSIX;
#use POSIX ":sys
I'm playing around with terminal programming on Linux, and wondered whether the
POSIX::termios package was the correct method to make my code cross-platform
compatible.
--nigel
This e-mail and any files transmitted with it are confidential
and solely for the use of the intended reci
34 matches
Mail list logo