Re: Anyway to write a file's last modify time ?

2007-03-01 Thread John W. Krahn
Mug wrote: > Hi all, Hello, > Is there a Perl way I can modify a file's last modify time in > anyway ? perldoc -f utime John -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order. -- Larry Wall -- To unsubsc

Anyway to write a file's last modify time ?

2007-03-01 Thread Mug
Hi all, Is there a Perl way I can modify a file's last modify time in anyway ?I am going to write a script that sync the files by comparing their last modify time. Machine A will generate a file list vs last modify time, and POST to Machine B, where B will generate itself the same structure file

Re: What's the Perl equivalent of this PHP contruct?

2007-03-01 Thread Madan Kumar Nath
Hello , Are you trying to dump the data from perl and then read it in php. ? Madan Randall wrote: you'll need to write both PHP arrays as hashes in Perl Thanks for the help, but it didn't work at all :-( nothing could be read from the PHP side. Any ideas? -- To unsubscri

Re: remove line if field one is duplicate

2007-03-01 Thread John W. Krahn
oryann9 wrote: > --- Chas Owens <[EMAIL PROTECTED]> wrote: >> >>This should work >> >>perl -ne 'print unless $h{(split/:/)[0]}++' > > This is creating a anonymous hash, correct? No, incorrect. The hash is named %h. John -- Perl isn't a toolbox, but a small machine shop where you can special-o

Re: What's the Perl equivalent of this PHP contruct?

2007-03-01 Thread Robert Boone
On Mar 1, 2007, at 10:51 AM, Traeder, Philipp wrote: On Thursday 01 March 2007 06:52, Randall wrote: I've translated the following PHP snippet: $data = array(); $num = 0; $data[$num]['title'] = 'Name'; $data[$num]['data'] = 'Randall'; $num++; As this Perl: my @data; my $num = 0; $data[$nu

Re: remove line if field one is duplicate

2007-03-01 Thread oryann9
--- Chris Charley <[EMAIL PROTECTED]> wrote: > > > This is creating a anonymous hash, correct? > > This is saying > print unless the first field has been seen before > > which is what he wants his code to do. > > $h is a good short notation - but using %seen > instead of %h may make it clearer

Re: What's the Perl equivalent of this PHP contruct?

2007-03-01 Thread Randall
you'll need to write both PHP arrays as hashes in Perl Thanks for the help, but it didn't work at all :-( nothing could be read from the PHP side. Any ideas? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: remove line if field one is duplicate

2007-03-01 Thread oryann9
--- Chas Owens <[EMAIL PROTECTED]> wrote: > On 2/27/07, Keenan, Greg John (Greg)** CTR ** > <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have to combine several Unix password files and > remove any duplicate > > accounts - putting this into LDAP. > > > > I have the following code that will remove

Re: What's the Perl equivalent of this PHP contruct?

2007-03-01 Thread Traeder, Philipp
On Thursday 01 March 2007 06:52, Randall wrote: > I've translated the following PHP snippet: > > $data = array(); > $num = 0; > > $data[$num]['title'] = 'Name'; > $data[$num]['data'] = 'Randall'; > $num++; > > As this Perl: > > my @data; > my $num = 0; > > $data[$num]['title'] = 'Name'; > $dat

Re: URL too long

2007-03-01 Thread Tatiana Lloret Iglesias
Thanks a lot ... unfortunately URL doesnt work from a browser So finally i'm parsing the long query manually and joining results at the end.. Thanks! T On 3/1/07, Tom Phoenix <[EMAIL PROTECTED]> wrote: On 3/1/07, Tatiana Lloret Iglesias <[EMAIL PROTECTED]> wrote: > The query is so long

Re: URL too long

2007-03-01 Thread Tom Phoenix
On 3/1/07, Tatiana Lloret Iglesias <[EMAIL PROTECTED]> wrote: The query is so long because it's created "manually" in a java program and passed to perl script as input parameter Do you know whether or not the URL is valid? That is, if you use the java-generated URL in your favorite web browser

What's the Perl equivalent of this PHP contruct?

2007-03-01 Thread Randall
Hello, I've translated the following PHP snippet: $data = array(); $num = 0; $data[$num]['title'] = 'Name'; $data[$num]['data'] = 'Randall'; $num++; $data[$num]['title'] = 'Email'; $data[$num]['data'] = '[EMAIL PROTECTED]'; $num++; As this Perl: my @data; my $num = 0; $data[$num]['title']

Re: cgi calender

2007-03-01 Thread oryann9
--- zentara <[EMAIL PROTECTED]> wrote: > On Wed, 28 Feb 2007 12:10:36 -0800 (PST), > [EMAIL PROTECTED] (oryann9) > wrote: > > >Will anyone offer some kind help? > > See: > http://perlmonks.org?node_id=599419 > > Or groups.google.com for "perl html cgi calendar". > > zentara > > -- Why did

Re: Output Order?

2007-03-01 Thread Bill Jones
Gr check syntax check syntax ; lol ... On 3/1/07, Bill Jones <[EMAIL PROTECTED]> wrote: # A long winded approach might use # (modified from FAQ 8) - use IPC::Open3; $_ = "I am the Alpha and the Omega (UT99 Player Xan)\n"; open(o, "cat $_"); print; print "H?\n"; That code wil

Re: Output Order?

2007-03-01 Thread Bill Jones
On 3/1/07, David Moreno Garza <[EMAIL PROTECTED]> wrote: What's the proper way to handle buffering? I mean, to prevent it. Sometimes you just want to output immediately; however as Tom mentioned 'cat' doesn't output until the buffer is closed; for example - $|++; # Setting this has no effect o

Re: URL too long

2007-03-01 Thread Tatiana Lloret Iglesias
The query is so long because it's created "manually" in a java program and passed to perl script as input parameter What I dont understand is that, if the website i'm connecting has a form GET how can I change this? I mean if it's a form from my application I can change HTML code without prob