Simple pointer kind of question

2002-05-30 Thread siren jones
I'm trying to figure out some cgi code which has the statment &readparse(*input); I know readparse is a subroutine, but what is "*input"? Is that a variable? Reference? Parameter? What? Thanks. -s _ Get your FREE download of

Testing for Success

2002-05-07 Thread siren jones
Tony and Chas, thanks for the help. First problem was using switched from DOS PC to UNIX system which had no idea what #! c:\perl was since it wanted #! /usr/global/perl. Don't really understand how $exit_value = $? >> 8; $signal_num = $? & 127; $dumped_core = $? &

Testing for command success

2002-05-07 Thread siren jones
I'd like to test the following command to see if it ran successfully? Have no idea how or which variable stores the success of a command ($!, $], $_ )? system "tar cvf ../test.tar *.grib"; Tried: if (system "tar cvf ../test.tar *.grib";) { print "\nSuccess!\n";} got: "Command not found"

Inverse tangent function?

2002-04-22 Thread siren jones
Trying to figure out what the inverse tangent function is... (as in FORTRAN arctan) Tried using: $ result = atan2(u/v); print "result = $result \n "; Got error: "Too few arguments". Any suggestions on either the function or where to look up math functions for PERl? Couldn't find it in "Progr

LWP binary file retrievals?

2002-03-18 Thread siren jones
Is it possible to use LWP::Simple to retrieve a binary file (i.e. a .netCDF file)? Using the following code I can retrieve what I'm guessing are parts of the file. That is, what is retrieved is always 3871 bytes even though the file is actually much larger. Worse, I can not read the .netcdf

Simple LWP web retrieval question

2002-03-15 Thread siren jones
I tried the following code to retrieve netCDF data files from a website. use LWP::Simple getstore("source_url"/", "input_filename"); The problem is when I go to read the netCDF file I can't. It is as if it does an ASCII transfer instead of a binary or some such thing? Don't really know.

simple file reading question

2002-03-06 Thread siren jones
I have a file containing a list of names, for example: S2000123456.met S2000123457.ozone S2000123458.hdr S2000234569.met . . etc. I'm looking for a short way to read these filenames onto an array. I tried: my @fils = <$indir/filename>; . but this just gives me the name of my input

s/// Question from Newbie

2002-02-04 Thread siren jones
I'm trying to replace the ^ in a filename, which by the way, I did not create. Here is the filename: Wind19^144^0.0^100^.grib Here is my test code: $a = "144^0.0^100^"; $a = s/^/_/g; # replace ^ with underscore character for ftp print "$a,"\n"; exit; Here is what gets printed: 144^0.0^

Thanks on chomp on to localtime

2001-09-14 Thread siren jones
Thank you for the detail explaination on chomp! Where can I get more info on using localtime() function or POSIX::strftime? Thanks, again. -s _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To un

chomp question

2001-09-14 Thread siren jones
What is happening here? $date = `/bin/date + %y%m%d`; print "$date"; prints >20010914 > But if I add: $a = chomp($date); print "$a"; it prints > What happens to the number? Why doesn't chomp just get rid of the newline? Thank you in advance. _

CPAN simple module

2001-09-12 Thread siren jones
Does anyone know of a reasonably simple, CPAN, stand-alone module? By stand-alone, I mean it doesn't require any other modules to be previously installed. I'm trying to figure out how to install a module and get it to work. Originally I was trying to do this on an SGI network, for the time bei

CPAN simple module

2001-09-12 Thread siren jones
_ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

LWP Module installation on SGI/IRIX

2001-09-07 Thread siren jones
This is my first post. My knowledge base is UNIX/Intermediate, IRIX system admin/beginner and PERL/beginner. The short question: After one follows the installation procedure for a module, that is, download, gunzip, tar, ... then perl Makefile.PL make make test make install How does one get