Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: DIFFERENCE BETWEEN VARIABLE

by ChOas (Curate)
on Jan 31, 2001 at 15:18 UTC ( [id://55462]=note: print w/replies, xml ) Need Help??


in reply to DIFFERENCE BETWEEN VARIABLE

I can tell you that you should use:

  • strict
  • -w
  • $output

when using strict, and -w ${'output'} results in:

Can't use string ("output") as a SCALAR ref while "strict refs" in use at ./lal line 8.

When you use ${'output'} you are trying to dereference 'output'...
To be more exact: using $output means using whatever output contains.
using ${'output'} means using whatever 'output' points to, since it is highly
unlikely that 'output' is/will ever become a valid reference, this results in an
error (caught by 'use strict')

GreetZ!,
    ChOas

print "profeth still\n" if /bird|devil/;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2024-04-24 16:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found