opening files

A

all knowing

Can anyonne plz help me
I was trying to open files in my perl program but it actually never
works...

all knowing
 
S

Sherm Pendley

all knowing said:
Can anyonne plz help me
I was trying to open files in my perl program but it actually never
works...

"It doesn't work" is the worst possible description of the problem that
you could give.

<http://www.catb.org/~esr/faqs/smart-questions.html>

If your open()s are failing silently, you can fix that; instead of using

open my $foo, "foo.txt";

Use this instead:

open my $foo, "foo.txt" or die "Could not open foo.txt: $!";

The error message in $! will tell you why the open failed.

Have you read the posting guidelines for this group? Lots of good tips
there, including better ways to write a question (to improve your odds of
getting a good answer), and how to ask Perl for more information.

The posting guidelines are posted here frequently. If they're not on the
server you're using, a Google Groups search for "posting guidelines" will
lead you to them.
all knowing

Apparently not. ;-)

sherm--
 
G

Glenn Jackman

At 2005-12-01 03:00PM said:
Can anyonne plz help me
I was trying to open files in my perl program but it actually never
works...

all knowing
^^^^^^^^^^^

How ironic.
 
E

Eric J. Roode

Can anyonne plz help me
I was trying to open files in my perl program but it actually never
works...

Yeah, I had that problem once, too.

--
Eric
`$=`;$_=\%!;($_)=/(.)/;$==++$|;($.,$/,$,,$\,$",$;,$^,$#,$~,$*,$:,@%)=(
$!=~/(.)(.).(.)(.)(.)(.)..(.)(.)(.)..(.)......(.)/,$"),$=++;$.++;$.++;
$_++;$_++;($_,$\,$,)=($~.$"."$;$/$%[$?]$_$\$,$:$%[$?]",$"&$~,$#,);$,++
;$,++;$^|=$";`$_$\$,$/$:$;$~$*$%[$?]$.$~$*${#}$%[$?]$;$\$"$^$~$*.>&$=`
 
U

usenet

all said:
Can anyonne plz help me
I was trying to open files in my perl program but it actually never works...

Perl isn't really a suitable programming language for opening files. It
has some commands for opening files, but they don't really work and
nobody ever uses them. That's probably why you're having so many
problems.

You need to be using a different programming language (maybe php?) -
try asking your question in comp.lang.php.
 
R

robic0

lreP nsi't yllaer a elbatius gnimmargorp egaugnal rof gninepo selif. tI
sah emos sdnammoc rof gninepo selif, tub yeht nod't yllaer krow dna
ydobon reve sesu meht. tahT's ylbaborp yhw uoy'er gnivah os ynam
smelborp.

uoY deen ot eb gnisu a tnereffid gnimmargorp egaugnal (ebyam php?) -
yrt gniksa ruoy noitseuq ni pmoc.gnal.php.
huh?
 
U

usenet


Aw, c'mon, Rob - you know full well that Perl sucks - you said so
yourself (http://tinyurl.com/aqvnr). Everyone knows that Perl can't
read files. Larry Wall wrote Perl to control traffic lights! That
sort of thing happens in real-time; there has never really been a need
to read "files" in Perl (traffic lights don't have hard drives). I was
simply informing the OP that, if he needs to read a file, he really
needs to be using a different programming language (the quality of my
answer was proportional to the quality of his question). Hopefully he
will get the message (I'm pretty sure most of the _other_ folks here
got the message)...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,176
Messages
2,570,947
Members
47,501
Latest member
Ledmyplace

Latest Threads

Top