Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
We don't bite newbies here... much
 
PerlMonks  

Re: line number ($.) problem ?

by 5mi11er (Deacon)
on Mar 27, 2007 at 17:02 UTC ( #606798=note: print w/ replies, xml ) Need Help??


in reply to line number ($.) problem ?

Ah, yes, thanks guys; I was thinking I needed the 'f' when specifying a filehandle. I will attempt to run it again with that fixed and report back.

Update: That was it. Thanks again.

-Scott

(And yes, you're exactly right ikegami, I was being confused by my memories of my c coding days.)


Comment on Re: line number ($.) problem ?
Re^2: line number ($.) problem ?
by ikegami (Pope) on Mar 27, 2007 at 17:21 UTC

    When stdio in C, IO functions are preceeded by f (e.g. fopen, fprintf, fputs and fgetc) to avoid confusion and conflicts with system calls and non-file version.

    That's not the case in Perl. Perl labels the system calls instead (e.g. sysopen and syswrite) instead of the high-level call, since they the system calls are not used as often. To differentiate between file and non-file version, Perl uses polymorphism (e.g. print ... vs print FILE ..., printf ... vs printf FILE ...).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://606798]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-04-20 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls