Is it possible to omit fields when they are repeated?
e.g.
---------------------------------------------------------
name lastname debit credit
Peter Smith $12.00 $14.11
$11.11 $05.11
John Doe $07.22 $07.11
Bill Doewn $01.22...
I am not sure where to start on this one
I wrote a PM file that looks after logging of all activity taking place with the main application.
code
---------------------------------------------------------
$finalTime= (localtime(time))[2] . ":" . (localtime(time))[1] . ":" ...
I am using the split function to load an array,
some of the records will split in 2 others only once
if it splits in 2 I need to only keep the 2 record but if it splits once, I keep the 1st record. The problem that I ran into is when the second element [1] in the array is empty, I get an...
I need some help with this "string match"
( $ans_quantity !~ /^[0-9]{3}d/)
what I am trying to do is for the user to enter a min of 1 numeric digit and not more that 3 numeric digits (not allowing alpha numeric characters)
thank you...
Veteq
I am kinda confused on this one...(I am new to perl)
in linux I use a variable to hold the location of the log files
$WD_LOGDIR = /var/log/WS
when I try to incorporate this variable to the open command, it creates a file in the "current location" that included the path name.
open (FILEOUT...
I am retrieving data from a remote database....
Code:____________________________________________________
while (@data = $sth->fetchrow_array())
{
print "@data[0]\t\t@data[1]\t\t@data[2]\n";
}
_________________________________________________________
this is the code and it works...
I just started to program in Perl,
One of the first program that I will be working on will need to display a menu on a telnet session, what is the best way to do this in perl
e.g
1) option abc
2) option def
3) .....
enter your selection:
up to 10...
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.