The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Feel like testing a page? by mikosullivan2006-11-19 12:55:59
  nifty by nimdokk2002-03-20 15:24:20
    i used file globs and tests with my ls -1 (one) by i_am_pi 2002-03-20 17:00:08
for say /usr/share/games/fortunes
chdir "/usr/share/games/fortunes";
while (<*>) {
  next if (/\.dat$/);  # Omit files whose name end with .dat.
  next if (/\.$/);     # Get rid of the . and .. entries
  print "<option value=\"$_\">$_</option>\n";
}

I dunnno if this will help but it worked for my perl purposes. I think that you could read $_ into an array perhaps.

Pi
For Great Justice|ecitsuJ taerG roF
[ Reply ]
      i'll give it a shot by nimdokk2002-03-20 17:46:18
        hmmm by nimdokk2002-03-20 18:41:42

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)