IE is locking up. When it locks up I cannot close down IE, I have to hard boot the system. I can get it to lock up by switching betweens sites at a fast rate. Below is the error log that java has produced. I have tried uninstalling and reinstalling java. The system has been rebuilt 3 times. Can...
the 5.003 did not have the Getopt::Std , so I referenced one of our older perl scripts and saw it was calling on this :
require "getopts.pl";
I changed the script and changed the h_Options to opt_B and opt_N .
thanks,
put that code in and it tells me it found options N and P on the 5.80 version but of course on the 5.003 those options arent being set to anything ?
thanks
ok , Trojan that fixed the errors , Thanks, but now I have another problem the script doesn't work - all it does is print out the usage now? It works fine on 5.8.0 ..
#!/usr/bin/perl
use Getopt::Std;
use strict;
#use warnings;
my(%h_Option);
{
(getopts('N:P:h',\%h_Option) and (defined $h_Option{N} && defined $h_Option{P})) || PrintUsageAndQuit(1);
PrintUsageAndQuit(0) if $h_Option{'h'}; # Help doesn't need arguments
}...
can someone help me with this error please :
Global symbol "i" requires explicit package name at showcode.pl line 24.
Variable "$i" is not imported at showcode.pl line 24.
I can get my script to run fine with perl version 5.8.0 but when I try and run it on version 5.003 I get that error.
Thanks
each section has a set number of lines :
first 32 lines are names
then each section after that is 34 lines:
first 2 lines are product name and product number
next 32 lines are codes that correspond to the 32 names listed first.
ok here is an example of the file :
MIKE
JOHN
SALLY
SUE
DUDE
BONNY
BOB
LORI
MIKE
JIM
JAMES
BO
TOM
BETH
JON
CHRIS
GREG
SAL
TIM
LARRY
-2
HARRY
KIP
POP
DON
COLT
RON
-2
-2
-2
-2
-2
MOW <----- 1st product starts here
MOWER BLADE
23
MOW
221
*
*
*
9
*
*
3
*
*
03
*
03
01
*
*
*
*
*
028
*
*
*...
thanks for the tip , I am still a little confused on this though. The first 30 lines of the file are going to be the Name1-Name30 and they are not going to be in the same order all the time, so I would I go about that?
I would like to give the program an arguement like this :
program.pl -nName1 -pProductName1 and it would print out something like this :
Name1 ProductName1 ProductNumber1 ProductCode1
Thanks for your help
I need some help getting started on how to read and format a data file. The data file contains names listed at top of file followed by products ,product numbers and UPC. The file layout is listed below :
Name1
Name2
Name3
ProductName1
ProductNumber1
ProductCode1(links to Name1)...
thanks to both of you those both work great. How would I go about putting all the matches on 1 line with a comma seperating each match :
99.99G,88.88G,99.99E, etc.
Thanks again.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.