ok this is my problem.
I have a variable that is very specific in spaceing but when ever i try to use the variable i only get 1 empty space vs 3 for example.
$ list="list me"
$ echo $list
list me
$ list2="one two three"
$ echo $list2
one two three
i have tried... (7 Replies)
Hello everyone.
I wrote a perl script to get the two answers from a value: x.
By this, I want to do sqrt($x) in different precision.
#!/usr/bin/perl
print "Input the initial value x:\n";
chomp($x=<STDIN>);
$comp=sqrt($x);
$float_value=pack("f", $comp);
$double_value=pack("d", $comp);... (2 Replies)
How do I pack (using tar zcvf ?) the current folder inluding all files and folders ??
I need to be sure to get all files and folders/subfolders...
Later I will unpack into a new folder on a new server..
Appreciate any help.. (3 Replies)
I have a file that contains user id and corresponding password.
Lets say password is "help". The below command will create a hex value for string "help".
perl -e 'print unpack "H*","help"'
So now password is in encoded format.
Then I decoded it in the script where am fetching the... (1 Reply)
I wondering if anybody tried already or know about the performance to process some Oracle staff from Perl.
I see it could be done by the DBI pachage (so, I guess, it is interface to the OCI, but who know how sufficiant it is..,) with all gemicks around (define, open, parce, bind,.. ), or it can... (8 Replies)
Hello,
I found some code on line.
Is a python function that bring up an Internet interface, here the code:
# Get existing device flags
ifreq = struct.pack('16sh', 'wlan0', 0)
flags = struct.unpack('16sh', fcntl.ioctl(sockfd, SIOCGIFFLAGS, ifreq))
I'm starting... (1 Reply)
Hi ALL,
I am running weblogic portal(9.2.2) on solaris and i wanted to apply maintenance pack and upgrade it to 9.2.3. Without using
x-windows system how can i apply maintenance pack.? (0 Replies)
Hi I have a code like this:
sub WriteEbcdicHeader
{
my $Htimestamp=localtime();#i need to pack and unpack this
my $eheaderline = $Htimestamp;
#packing has to be done here
#unpacking has to be done after packing
print $EOUTFILE
return $eheaderline;
}
sub WriteEbcdicTrailer
{
... (5 Replies)
Discussion started by: rbathena
5 Replies
LEARN ABOUT ULTRIX
pnoutrefresh
prefresh(3cur)prefresh(3cur)Name
prefresh, pnoutrefresh - refresh pad
Syntax
#include <cursesX.h>
int prefresh(pad, pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol)
WINDOW *pad;
int pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol;
int pnoutrefresh(pad, pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol)
WINDOW *pad;
int pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol;
Description
The routine copies the specified pad to the physical terminal screen. It takes account of what is already displayed on the screen to opti-
mize cursor movement.
The routine copies the named pad to the virtual screen. It then compares the virtual screen with the physical screen and performs the
actual update.
These routines are analogous to the routines and except that pads, instead of windows, are involved. Additional parameters are also needed
to indicate what part of the pad and screen are involved. The upper left corner of the part of the pad to be displayed is specified by and
The co-ordinates and specify the edges of the screen rectangle that will contain the selected part of the pad.
The lower right corner of the pad rectangle to be displayed is calculated from the screen co-ordinates. This ensures that the screen rec-
tangle and the pad rectangle are the same size.
Both rectangles must be entirely contained within their respective structures.
Return Values
The and functions return OK on success and ERR on error.
See Alsownoutrefresh(3cur), wrefresh(3cur)prefresh(3cur)