Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: hash problem

by muntfish (Chaplain)
on Jun 08, 2005 at 08:53 UTC ( [id://464595]=note: print w/replies, xml ) Need Help??


in reply to hash problem

It's not necessarily true that it is "unable to perform the last line of code".

The code after the or will be run if the results of the previous code was 0, empty string, or undefined. So if $names{1} is any of those things, your die will be called.

Is that die in the right place anyway? Looks like it should be after your open:

open (name, "<data/gly.txt") or die "unable to open";

It's more common to use CAPS for file handles, by the way.

Hope this helps - if not please post a specific example of your input to illustrate what's going on.


s^^unp(;75N=&9I<V@`ack(u,^;s|\(.+\`|"$`$'\"$&\"\)"|ee;/m.+h/&&print$&

Replies are listed 'Best First'.
Re^2: hash problem
by Anonymous Monk on Jun 08, 2005 at 08:57 UTC
    if i print $structure i get nothing at all. the file split looks like:
    1| h20 2| acyl etc
    so the $structure when $number =1 should be h20

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-25 21:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found