Am Montag, 16. Mai 2005 11.57 schrieb Madhur Kashyap: > Ohh I am extremely sorry ... When I was trying to write the code > exceprt I forgot to add some lines but showed the log generated from > complete code. > > > > sub loadNxfDB { > > > print "$_[0]"; > > > my $nxfDBFH=new FileHandle; > > > open ($nxfDBFH,$_[0]) or die "Error: Cannot open netname > > > cross-reference database, $_[0]\n"; .... > > > return %nxfDB > > > } > > > > > > sub updateNetPairsDB { > > > my %nxfDB=&loadnxfDB > > > ("/tmp/$topCellName/LVS/svdb/$topCellName.nxf"); } > > > > > > sub main { > > > ..... > > > &updateNetPairsDB (); > > > } > > > > > > &main (); > > > > > > Package Installation directory > > > $BFE_INST_DIR=/mot/madhurk/meth1/dft/bridges/defect_bfault > > > > > > Prepairing environment ... > > > Creating necessary directory structure ... > > > /tmp /crm_com/LVS /svdb/ crm_com.nxf > > > > Where is this coming from? The spaces in the path are here too. > > Please see the loadNxfDB routine above. In the very beginning I am > printing the argument that has been passed to the function. I did > that for checking what's happening.
Hmm... I don't have any idea where/why spaces are inserted between $topCellName="crm_com"; loadnxfDB ("/tmp/$topCellName/LVS/svdb/$topCellName.nxf"); and sub loadNxfDB { print "$_[0]"; # btw: unneccessary double quotes } > > > Error: Cannot open netname cross-reference database, /tmp /crm_com/LVS > > > /svdb/ crm_com.nxf > > > > This error msg is not coming from the die() in loadNxfDB(), the text is > > different ("netname"). > > (Without the "\n" ending strings passed to die/warn, you get the file > > names and line numbers of errors/warnings) > > Thats not an error reported by perl, that string is generated by the > program itself Don't know the non-perl "program itself". Maybe somebody else could help? > to specify that there is some problem with the file > path specified. Consider that as a typo when I was writing the exceprt > of my code in the email. > > -- > Regards > Madhur Kashyap -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>