@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> Instead of using open (FH, "whatever.txt")
<0> Is there something I can do to make it open all .txt files in the directory and any subdirectories?
<1> perldoc -f glob
<0> So, because I don't understand what I'm reading, can I do open (FH. bsd_glob('#.txt'))



<0> #==*
<1> o
<1> no
<1> glob will just give you filenames
<0> Oh hrm
<0> If \n is new line, what's tab?
<1> \t
<0> You're the best.
<1> http://www.sthomas.net/oldpages/roberts-perl-tutorial.htm
<0> The perl documentation is like, in spanish or something to me >.>
<0> It speaks, and I cannot understand <.<
<0> ok, I got it sorta working
<0> And I'm not finding my answer in either the perl doc or the tutorial
<0> @list = bsd_glob('*.txt'); $listed=1;while (@list){open (FH, "@list[$listed]") or die ("foo"); $listed++;



<0> It dies after the first file, with foo.
<0> So I'm not interacting with the output of bsd_glob correctly
<2> um
<2> damn
<2> for one, **** thats a mess
<2> secondly, you're attempting to access a single list item, prefied with @
<2> $ = scalar = single
<2> anytime you want a scalar, it would be prefixed with a $
<2> and, those quotes are useless, in the open
<0> >.>
<0> I'm not a perl coder :(
<2> then you've a real problem, dont you
<0> Oh yeah.
<0> But once I figure it out enough to get a solution, I can import my data to mysql, and be done with the perl portion >.>


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #perl
or
Go to some related logs:

#india
#india
#kl
#allnitecafe
milllet nbr
Advertising Okso! HDTS
#kl
#chat-world
xxl chanle
#india



Home  |  disclaimer  |  contact  |  submit quotes