Sponsored Content
Full Discussion: Registration request.
Contact Us Forum Support Area for Unregistered Users & Account Problems Registration request. Post 302878633 by nongrato on Saturday 7th of December 2013 01:28:15 PM
Old 12-07-2013
Thank you, Scott! Smilie
 

5 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

How to delete registration please?

How do I delete my registration please? (1 Reply)
Discussion started by: amaitland
1 Replies

2. Forum Support Area for Unregistered Users & Account Problems

Need help with forum registration

i can not register, please help me (1 Reply)
Discussion started by: friender@mail
1 Replies

3. Forum Support Area for Unregistered Users & Account Problems

Problem with registration

When I'm trying to register it says that my e-mail adress )is banned by administrator. Why? Thanks PS The same problem occurs with other 2 adresses I have (1 Reply)
Discussion started by: Mihail
1 Replies

4. Solaris

Solaris 10 without registration

Hello people, I'm a private one and have no a support contract with Oracle, Sun Microsystems. And I want to test the Solaris10 U10 and play with no limit. I can use the Solaris 10 U10 without registration. Or must I obtain a contract to Sun for this test Thanks for the answer greeting ... (4 Replies)
Discussion started by: alkhatw
4 Replies

5. Shell Programming and Scripting

Character first registration

friends I have the following code that works perfect while read linea do largo=${#linea} echo "largo es///////////: $largo " if then echo "Longitud De Registro Invalida" echo " $linea > ERROR DE LONGITUD" >> ... (2 Replies)
Discussion started by: tricampeon81
2 Replies
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)
All times are GMT -4. The time now is 06:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy