11-10-2013
Thanks Scott. What was the issue.
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Could some one please tell me why, when I run the following
php code:
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<?php
$readfile = file("rss_file.xml");
for ($k=0; $k<=count($readfile)-1; $k++) {
echo "$readfile<br>";
}
</BODY>
</HTML>
the tags do not appear in... (1 Reply)
Discussion started by: photon
1 Replies
2. Post Here to Contact Site Administrators and Moderators
Sir,
I want to post a new thread but I am not able to find a new thread link anywhere in the home page.
Every time i used to go to new post and selecting contact administrator after that there is a link for new thread is it the right method. (1 Reply)
Discussion started by: salaathi
1 Replies
3. Web Development
hi,
why my uploaded images are not visible both in front-end and back-end of my CMS ?
See the picture:
http://dl-client.getdropbox.com/u/72686/noPics.png
I checked the GD library in php. It seems ok...
http://dl.getdropbox.com/u/72686/GD.png
thanks
---------- Post updated at... (0 Replies)
Discussion started by: aneuryzma
0 Replies
4. Post Here to Contact Site Administrators and Moderators
I've made the thread title as descriptive as possible since I don't know if the admins can open it.
Well sure, now I can open THIS one. I'm getting it on any other thread I try in What's On Your Mind and High Level Programming.
Okay, it's decided to make a liar of me now. It seems to be... (2 Replies)
Discussion started by: Corona688
2 Replies
5. Solaris
Hi,
I have a strange problem. when i do ls i see a folder, say 'abc', but it disappears when i do ls -l. I cannot access or mv that folder. Solaris 10 (SPARC) doesn't allow me to create a new folder with the same name, as it already exists.
'file' command also doesn't recognize i 'abc'... (10 Replies)
Discussion started by: Mack1982
10 Replies
6. Shell Programming and Scripting
Hi
I have a pdf file that is being generated using the rwrun command in the shell script.
I then have the lp command in the shell script to print the same pdf file.
Suppose there are 4 pages in the pdf file , I need to print 2 copies of the first page, 2 copies of the second page , then 2... (7 Replies)
Discussion started by: megha2525
7 Replies
7. Shell Programming and Scripting
Hi,
If there is an expert that can help:
I have many txt files that are produced from pdftotext that include page breaks the page breaks seem to be unix style hex 0C.
I want to add page numbers before each page break as in : Page XXXX
Regards antman (9 Replies)
Discussion started by: antman
9 Replies
8. Solaris
OS : SunOS 5.8
I am trying to add a user ad3059 to the following groups,
A B C D ( four groups A,B,C,D)
When i use usermod command and add the user to the above groups,
and go to
> groups ad3059
other C D
It doesnt show A and B groups and shows it as other.Please advice on how... (13 Replies)
Discussion started by: Revathi2089
13 Replies
LEARN ABOUT DEBIAN
io::dirent
Dirent(3pm) User Contributed Perl Documentation Dirent(3pm)
NAME
IO::Dirent - Access to dirent structs returned by readdir
SYNOPSIS
use IO::Dirent;
## slurp-style
opendir DIR, "/usr/local/foo";
my @entries = readdirent(DIR);
closedir DIR;
print $entries[0]->{name}, "
";
print $entries[0]->{type}, "
";
print $entries[0]->{inode}, "
";
## using the enumerator
opendir DIR, "/etc";
while( my $entry = nextdirent(DIR) ) {
print $entry->{name} . "
";
}
closedir DIR;
DESCRIPTION
readdirent returns a list of hashrefs. Each hashref contains the name of the directory entry, its inode for the filesystem it resides on
and its type (if available). If the file type or inode are not available, it won't be there!
nextdirent returns the next dirent as a hashref, allowing you to iterate over directory entries one by one. This may be helpful in low-
memory situations or where you have enormous directories.
IO::Dirent exports the following symbols by default:
readdirent
nextdirent
The following tags may be exported to your namespace:
ALL
which includes readdirent, nextdirent and the following symbols:
DT_UNKNOWN
DT_FIFO
DT_CHR
DT_DIR
DT_BLK
DT_REG
DT_LNK
DT_SOCK
DT_WHT
These symbols can be used to test the file type returned by readdirent in the following manner:
for my $entry ( readdirent(DIR) ) {
next unless $entry->{'type'} == DT_LNK;
print $entry->{'name'} . " is a symbolic link.
";
}
For platforms that do not implement file type in its dirent struct, readdirent will return a hashref with a single key/value of 'name' and
the filename (effectively the same as readdir). This is subject to change, if I can implement some of the to do items below.
CAVEATS
This was written on FreeBSD and OS X which implement a robust (but somewhat non-standard) dirent struct and which includes a file type
entry. I have plans to make this module more portable and useful by doing a stat on each directory entry to find the file type and inode
number when the dirent.h does not implement it otherwise.
Improvements and additional ports are welcome.
TO DO
o For platforms that do not implement a dirent struct with file type, do a stat on the entry and populate the structure anyway.
o Do some memory profiling (I'm not sure if I have any leaks or not).
COPYRIGHT
Copyright 2002, 2011 Scott Wiersdorf.
This library is free software; you can redistribute it and/or modify it under the terms of the Perl Artistic License.
AUTHOR
Scott Wiersdorf, <scott@perlcode.org>
ACKNOWLEDGEMENTS
Thanks to Nick Ing-Simmons for his help on the perl-xs mailing list.
SEE ALSO
dirent(5), perlxstut, perlxs, perlguts, perlapi
COPYRIGHT AND LICENSE
Copyright (C) 2007 by Scott Wiersdorf
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or,
at your option, any later version of Perl 5 you may have available.
perl v5.14.2 2011-08-22 Dirent(3pm)