Hi List,
I'm having a little trouble with YAML. The current version of a script
uses Data::Dumper to keep running totals over multiple runs of the script
in a nested hash, as well as a couple of arrays to give other programs
hints about how to order the data (for, say, graphing). I'd very much lik
On Tue, Jun 19, 2001 at 03:41:40PM -0500, Jeff Wagg wrote:
>
> Hi,
> I was just wondering if there were any file test operators (or
> modules containing these operators) which tested files for their type. For
> example, is there a way to test a file to see whether or not it's in FITS
> form
On Wed, Jun 13, 2001 at 11:53:48AM -0400, Charles Lu wrote:
> How do I direct the messages destined for STDERR and redirect them to
> STDOUT?
>
>
>
> I have a perl script A that calls another program B. If there is bad input,
> Program B dumps out a lot of error messages through STDERR. I w
On Mon, Jun 11, 2001 at 01:42:47PM -0400, McIntyre, Terry wrote:
> THe following code works on my AIX machines,
> but not on Solaris machines. All are running Perl 5.005_03.
>
> What's the story?
>
> Thanks!
>
> #!/usr/local/bin/perl -w
>
> print "account = " ;
> $account = readline STDIN ;
>
On Mon, Jun 11, 2001 at 11:57:36AM +0200, Aaron Craig wrote:
> At 01:22 11.06.2001 -0800, you wrote:
>
> >If the reply issue is really difficult for new users to deal with, why is it
> >everyone who is complaining about it has already found a workaround?
>
> My whole issue with the thing is that
On Fri, Jun 08, 2001 at 09:46:18AM -0700, Matt Lyon wrote:
> I was wondering...
> if there are any one-page perl-script-templates that're pre-done
> that handle typical perl issues, where the header has all the use-strict /
> debugging stuff in it... that you can edit and morph into your own scrip
On Thu, Jun 07, 2001 at 10:55:28PM -0500, Karen Cravens wrote:
> On 7 Jun 2001, at 19:49, Mark S wrote:
>
> > Please reply to the list for the benefit of others.
>
> Is there a standard rant about lists that don't use a reply-to, or do I
> have to write my own?
>
Nah. Just get a Mail UA that
On Wed, Jun 06, 2001 at 07:23:59PM +0530, Saritha_Vinod wrote:
> Hi
>
> Can we use perl to show multiple languages on the browser?
>
Sure. Perl may not be the cleanest way to do it, but you could. Use
CGI.pm, and look for an "Accept-Language" header coming from the user
agent. You could then f
On Thu, Jun 07, 2001 at 12:39:33PM -0400, Andrew Nelson wrote:
> You can open a file via open() for reading or writing, but not both. Try
>
> open (FILE, $file);
> print FILE;
> close(FILE);
>
> And see if that doesnt help.
>
Not quite true. To read and write, try
open (FILE, "+<$file");
N
On Sat, Jun 02, 2001 at 06:13:04PM +1000, iain truskett wrote:
> Rob talked about
>
> foreach $value(sort {$a <=> $b} (values(%hash)) {
> print $value;
> }
>
> vs.
>
> foreach $value(sort byNum (values(%hash)) {
> print $value;
> }
>
> sub byNum {
> $a <=> $b;
> }
>
>
> Am I corr
On Mon, Jun 04, 2001 at 01:48:15PM -0400, Jeff Pinyan wrote:
>
> 2. use a regex to get the key and value:
>
Just a tiny refinement. My usual config file stuff is:
> while () {
chomp;
s/\s+#.*//; #strip trailing comments
> next if /^#/; # skip commented lines
next if /
On Fri, Jun 01, 2001 at 01:53:17PM +0200, [EMAIL PROTECTED] wrote:
> Hi,
>
> Is it possible to use a commando in Perl that will wait for example 50
> seconds an then will continue ?
>
sleep 50;
That's assuming you meant "command"; a commando could probably do
whatever the hell he wanted on my
On Thu, May 31, 2001 at 02:41:32PM -0500, David Michael wrote:
> Hello,
> I have a hash that needs to be displayed in a certain order. I tried
>
> foreach $key (sort (keys %HASH)) {
> print $key;
> }
>
> that sorts alphabetically. I need it in the order it was inserte
13 matches
Mail list logo