03-11-2008
Reference: WebObjects 5.4.1 Reference
Describes the WebObjects 5.4.1 classes in Javadoc format.
More...
10 More Discussions You Might Find Interesting
1. Programming
Can any one explain how the statement '2' in the following statements is a legal one.
int & ref = 3; // Illegal statement - Compiler error.
const int& ref=3 ; // Compile and executes properly.
Thanks in Advance,
Arun (1 Reply)
Discussion started by: arun.viswanath
1 Replies
2. Shell Programming and Scripting
I might know the answer to this, but I just want to see if any of you know any work arounds before I go and re-write the whole thing.
I have a script as follow:
$ cat testing
#! /usr/bin/ksh
f ()
{
echo "Type \"y\" \c"
read value
if ;
then
... (1 Reply)
Discussion started by: fidodido
1 Replies
3. HP-UX
I'm having to write 'C' programs for a group of HP-UX 11.X systems. While I have found many 'C' reference books which I like, none of them reference using 'C' in the UNIX environment.
Anyone have any good recommendations for books about 'C' programming under UNIX?
Thanks.
Chris (0 Replies)
Discussion started by: chrisc@nwark.ne
0 Replies
4. Shell Programming and Scripting
Hi!
I need to determin the most efficient way to do something (rather simple, I thought).
I'm currently echo(ing) a series of menu options, and reading the command input as the number associated with the entry. What I need to do is when the option 1 is selected, that it references a list and... (18 Replies)
Discussion started by: cchaloux
18 Replies
5. Programming
Hi All,
Which one do you think is better as the C reference book: C in a Nutshell (O'Reilly, 2005) or C Primer Plus 5th ed. (Sams, 2004)?
I knew both of them should be great, but I certainly do not want to buy both. Any suggestion? Thanks! (6 Replies)
Discussion started by: zx1106
6 Replies
6. Shell Programming and Scripting
Hi all,
I have a reference named $test. it points to the data structure as follows
'test' =>
},
... (1 Reply)
Discussion started by: Damon sine
1 Replies
7. Programming
Ive just started programming in C and am confused with the output of the code
void main()
{
int a=10;
int b=20;
swapr(a++,b++);
printf("%d %d",a,b);
}
swapr (int *x,int *y)
{
x+=2;
y+=3;
}
the output of the code is 11,21 which is confusing. first its... (3 Replies)
Discussion started by: ra2000
3 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
The problem is a function which i typed although it kept saying that it is a undefined reference still. other... (1 Reply)
Discussion started by: mgyeah
1 Replies
9. Shell Programming and Scripting
Guys,
May i know how can we de reference the code reference variable.?
my $a = sub{$a=shift;$b=shift;print "SUM:",($a+$b),"\n";};
print $a->(4,5);
How can we print the whole function ?
Please suggest me regarding this.
Thanks for your time :)
Cheers,
Ranga :) (0 Replies)
Discussion started by: rangarasan
0 Replies
10. Shell Programming and Scripting
Hi,
Could you please help me to get last reference date in Unix, in Unix we maintain SAS7BDAT files.
Is there any command or script to get the info,
Thank you. (2 Replies)
Discussion started by: subbarao12
2 Replies
LEARN ABOUT SUSE
file::randomaccess
File::RandomAccess(3) User Contributed Perl Documentation File::RandomAccess(3)
NAME
File::RandomAccess - Random access reads of sequential file or scalar
SYNOPSIS
use File::RandomAccess;
$raf = new File::RandomAccess(*FILE, $disableSeekTest);
$raf = new File::RandomAccess($data);
$err = $raf->Seek($pos);
$num = $raf->Read($buff, $bytes);
DESCRIPTION
Allows random access to sequential file by buffering the file if necessary. Also allows access to data in memory to be accessed as if it
were a file.
METHODS
new Creates a new RandomAccess object given a file reference or reference to data in memory.
# Read from open file or pipe
$raf = new File::RandomAccess(*FILE);
# Read from data in memory
$raf = new File::RandomAccess($data);
Inputs:
0) Reference to RandomAccess object.
1) File reference or scalar reference.
2) flag set if file is already random access (disables automatic SeekTest).
Returns:
Reference to RandomAccess object.
SeekTest
Performs test seek() on file to determine if buffering is necessary. If the seek() fails, then the file is buffered to allow random
access. SeekTest() is automatically called from new unless specified.
$result = $raf->SeekTest();
Inputs:
0) Reference to RandomAccess object.
Returns:
1 if seek test passed (ie. no buffering required).
Notes:
Must be called before any other i/o.
Tell
Get current position in file
$pos = $raf->Tell();
Inputs:
0) Reference to RandomAccess object.
Returns:
Current position in file
Seek
Seek to specified position in file. When buffered, this doesn't quite behave like seek() since it returns success even if you seek
outside the limits of the file.
$success = $raf->Seek($pos, 0);
Inputs:
0) Reference to RandomAccess object.
1) Position.
2) Whence (0=from start, 1=from cur pos, 2=from end).
Returns:
1 on success, 0 otherwise
Read
Read data from the file.
$num = $raf->Read($buff, 1024);
Inputs:
0) Reference to RandomAccess object.
1) Buffer.
2) Number of bytes to read.
Returns:
Number of bytes actually read.
ReadLine
Read a line from file (end of line is $/).
Inputs:
0) Reference to RandomAccess object.
1) Buffer.
Returns:
Number of bytes read.
Slurp
Read whole file into buffer, without changing read pointer.
Inputs:
0) Reference to RandomAccess object.
Returns:
Nothing.
BinMode
Set binary mode for file.
Inputs:
0) Reference to RandomAccess object.
Returns:
Nothing.
Close
Close the file and free the buffer.
Inputs:
0) Reference to RandomAccess object.
Returns:
Nothing.
AUTHOR
Copyright 2003-2010 Phil Harvey (phil at owl.phy.queensu.ca)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Image::ExifTool(3pm)
perl v5.12.1 2010-01-04 File::RandomAccess(3)