07-19-2002
Oops, sorry for the wrong information.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
for reading a cobol indexed file i need to convert "mmddyy" date format to "ccyyddd" format.
i checked the datecalc and other scripts but couldnt modify them to cater to my need:(...
The datecalc gives an output which i believe is the total days till that date, but i want to convert it... (2 Replies)
Discussion started by: Bhups
2 Replies
2. UNIX for Advanced & Expert Users
:) Hi
i am trying to convert a file which is in UTF8 format to ANSI format i tried to use the function ICONV but it is throwing error
Function i used it as
$ iconv -f UTF8 -t ANSI filename
Error iam getting is NOT Supported UTF8 to ANSI
please some help me out on this.........Let me... (1 Reply)
Discussion started by: rajreddy
1 Replies
3. UNIX for Dummies Questions & Answers
:confused: Hi
i am trying to convert a file which is in UTF8 format to ANSI format i tried to use the function ICONV but it is throwing error
Function i used it as
$ iconv -f UTF8 -t ANSI filename
Error iam getting is NOT Supported UTF8 to ANSI
please some help me out on... (9 Replies)
Discussion started by: rajreddy
9 Replies
4. UNIX for Dummies Questions & Answers
Hi
I have a file which has ascii , binary, binary decimal coded,decimal & hexadecimal data with lot of special characters (like öƒ.ƒ.„İİ¡Š·œƒ.„İİ¡Š· ) in it. I want to standardize the file into ASCII format & later use that as source .
Can any one suggest a way a logic to convert such... (5 Replies)
Discussion started by: gaur.deepti
5 Replies
5. Shell Programming and Scripting
Hi All,
Is there any way to convert a file which is in UNIX format to a PC format....
Flip command can be used , apart form this command can we have any other way.... like usinf "awk" etc ..... main purpose of not using flip is that my Kshell doesnot support this comamnd.... (2 Replies)
Discussion started by: Samtel
2 Replies
6. Shell Programming and Scripting
Hi All,
I have created a Unix Shell script whch creates a *.csv file and export it to Excel.
The problem i am facing is that Users wants one of the AMOUNT field in comma separted values. Example :
if the Amount has the value as 3000000 User wants to be in 3,000,000 format.
This Amount format... (2 Replies)
Discussion started by: rawat_me01
2 Replies
7. Shell Programming and Scripting
Hi,
I am having couple of files which i used to copy from windows to Linux, so now in case of text files (CTRL^M) appears at end of line. I know i can convert this windows format file to unix format file by running dos2unix.
My requirement here is that i want to do it automatically using a... (5 Replies)
Discussion started by: sarbjit
5 Replies
8. Shell Programming and Scripting
Hi Folks,
I have written a perl script that reads data from excel sheet(.xls) using Spreadsheet::ParseExcel module. But the problem is this module doesn't work for excel sheets with extension .xlsx.
I have gone through Spreadsheet::XLSX module with which we can read from .xlsx file directly.... (1 Reply)
Discussion started by: giridhar276
1 Replies
9. Shell Programming and Scripting
"Help Me" Need script for transferring bulk files from one format to text format in a unix server.
Please suggest (2 Replies)
Discussion started by: Kranthi Kumar
2 Replies
10. Shell Programming and Scripting
Hello Everyone,
I have one source file which is genarated by SAP in different format(Which I've never seen). I need to convert that file to required format and I need to read this target file from Datastage to use this in my Jobs. So I do not have any other options except to use Unix script to... (4 Replies)
Discussion started by: Prathyu
4 Replies
LEARN ABOUT DEBIAN
mojo::exception
Mojo::Exception(3pm) User Contributed Perl Documentation Mojo::Exception(3pm)
NAME
Mojo::Exception - Exceptions with context
SYNOPSIS
use Mojo::Exception;
my $e = Mojo::Exception->new;
DESCRIPTION
Mojo::Exception is a container for exceptions with context information.
ATTRIBUTES
Mojo::Exception implements the following attributes.
"frames"
my $frames = $e->frames;
$e = $e->frames($frames);
Stacktrace.
"line"
my $line = $e->line;
$e = $e->line([3, 'foo']);
The line where the exception occured.
"lines_after"
my $lines = $e->lines_after;
$e = $e->lines_after([[1, 'bar'], [2, 'baz']]);
Lines after the line where the exception occured.
"lines_before"
my $lines = $e->lines_before;
$e = $e->lines_before([[4, 'bar'], [5, 'baz']]);
Lines before the line where the exception occured.
"message"
my $message = $e->message;
$e = $e->message('Oops!');
Exception message.
"raw_message"
my $message = $e->raw_message;
$e = $e->raw_message('Oops!');
Raw unprocessed exception message.
"verbose"
my $verbose = $e->verbose;
$e = $e->verbose(1);
Activate verbose rendering, defaults to the value of "MOJO_EXCEPTION_VERBOSE" or 0.
METHODS
Mojo::Exception inherits all methods from Mojo::Base and implements the following new ones.
"new"
my $e = Mojo::Exception->new('Oops!');
my $e = Mojo::Exception->new('Oops!', $files, $name);
Construct a new Mojo::Exception object.
"throw"
Mojo::Exception->throw('Oops!');
Mojo::Exception->throw('Oops!', $files, $name);
Throw exception with stacktrace.
"to_string"
my $string = $e->to_string;
my $string = "$e";
Render exception with context.
"trace"
$e = $e->trace;
$e = $e->trace(2);
Store stacktrace.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojo::Exception(3pm)